locked
How to prevent network share disconnect? RRS feed

  • Question

  •   
    Hi,
       
    some of our branches have a bad internet connection (low data throughput and - maybe - short connection breaks caused by the internet provider).

     ... and maybe "Windows Server" has a default built-in auto-disconnect function when there is no activity on the network drive?
       
    ------------------
       
    So the network share connection gets cut (in most cases) after some hours.
       
    Network drive is created with VBScript:

       wshNetwork.MapNetworkDrive "M:", "\\192.168.0.1\testshare", True, "testdomain\testuser", "testpass"
       
    ------------------

    Is there a way to force "endless lifespan" for a special network drive or something like an auto-reconnect?
       
    Thanks

    TD
       
    Wednesday, December 13, 2017 5:45 AM

Answers

  • No matter how a share is connected it is auto-disconnected after a period of inactivity.  If you access a file on the share after it is disconnected it will reconnect automatically.  If there are network problems you need to fix the network problems.

    None of this has anything to do with scripting.

    Share behavior is Windows 101.  Contact a trained Windows tech to help you resolve your network issues.  They cannot be fixed with a script.


    \_(ツ)_/

    Wednesday, December 13, 2017 6:16 AM

All replies

  • No matter how a share is connected it is auto-disconnected after a period of inactivity.  If you access a file on the share after it is disconnected it will reconnect automatically.  If there are network problems you need to fix the network problems.

    None of this has anything to do with scripting.

    Share behavior is Windows 101.  Contact a trained Windows tech to help you resolve your network issues.  They cannot be fixed with a script.


    \_(ツ)_/

    Wednesday, December 13, 2017 6:16 AM
  • Thanks.
    Friday, December 22, 2017 7:01 AM