An easy method to keep network connections without any interruption is to create a scheduled task that calls a script that maps a certain folder every 5 minutes.

1.  Create a .bat file for example: netrefresh.bat contained

2. Create a scheduled task using the following in command prompt

3. Check if task created