none
Force a Mapped Drive check after system wake

    Question

  • I have setup where the users are consistantly unable to access their shared data until the data is first accessed through Windows Explorer.

    The users have laptops and will shut them down and take them off site.  When the laptops are powered up they are unable to see the mapped drives since they are not connected to the network.  When the laptops are brought back while in sleep mode and placed on the dock, they can then be woken up but the drive will still display as offline and the application they use that access the mapped drive will fail since Windows says the drive is unavailable.

    The drive can be accessed using Windows Explorer without any issue and once they are accessed the software will see the drive as online and the data will be available.

    Is there away to force Windows 7 Professional (64-bit) to poll the mapped drives when coming out of sleep?

    I do not what to run a batch file or script to do this because creating a shortcut to the drive (P in this case) would be just as simple.

    Tuesday, April 24, 2012 9:12 PM

Answers

  • Hi,


    Based on my research, please open Control Panel -> Administrative tools -> Local Security Policy -> Local Policy -> Security Options and set the value of the policy Microsoft Network Server:Amount of idle time required before suspending a session to 99999 and see how it works.


    Note: please perform the step in the computer which you share the folders to your laptops.


    This is the explanation:


    This security setting determines the amount of continuous idle time that must pass in a Server Message Block (SMB) session before the session is suspended due to inactivity. Administrators can use this policy to control when a computer suspends an inactive SMB session. If client activity resumes, the session is automatically reestablished. For this policy setting, a value of 0 means to disconnect an idle session as quickly as is reasonably possible. The maximum value is 99999, which is 208 days; in effect, this value disables the policy.


    Default: This policy is not defined, which means that the system treats it as 15 minutes for servers and undefined for workstations.


    Hope this helps.


    Jeremy Wu

    TechNet Community Support

    Friday, May 04, 2012 9:38 AM

All replies

  • Hi,


    Firstly, please let us know when you wake up your computer, does the mapped drive exist in Computer? Does it contain a red “x” in its icon?


    Meanwhile, based on my research, please try the following:


    1. Please refer to Create a shortcut to (map) a network drive and make sure that you have selected “Reconnect at logon”.


    2. Please search Device Manager in Start Menu. Navigate to Network adapters, and in the properties of your network adapter, please click Power Management and unselect Allow the computer to turn off this device to save power and see how it works.


    3. Please refer to Mapped Drive Connection to Network Share May Be Lost and run

    net config server /autodisconnect:-1 

    in command prompt and see how it works.


    Hope this helps. 


    Jeremy Wu

    TechNet Community Support

    Thursday, April 26, 2012 9:09 AM
  • The drives will remain mapped and contain a red "X".  Clicking on that drive will force Windows to check the drive and see it as online.  Once the OS sees the drive as online the software will then work.

    I have created a script that will reconnect the drive when they login but this runs at login not when the system wakes.

    Changing the device setting makes no chnage since the system is not connected to the network prior to goign to sleep.  If the device goes to sleep while connected to the network it wakes with the drives still connected.

    I do not want to run a script since clicking the drive under Computer will connect and allow everything to work.

    I am looking to force Windows to check the drive when Waking from sleep.  Is this possible?

    Timmy

    Thursday, April 26, 2012 1:30 PM
  • Hi,


    Based on my research, please open Control Panel -> Administrative tools -> Local Security Policy -> Local Policy -> Security Options and set the value of the policy Microsoft Network Server:Amount of idle time required before suspending a session to 99999 and see how it works.


    Note: please perform the step in the computer which you share the folders to your laptops.


    This is the explanation:


    This security setting determines the amount of continuous idle time that must pass in a Server Message Block (SMB) session before the session is suspended due to inactivity. Administrators can use this policy to control when a computer suspends an inactive SMB session. If client activity resumes, the session is automatically reestablished. For this policy setting, a value of 0 means to disconnect an idle session as quickly as is reasonably possible. The maximum value is 99999, which is 208 days; in effect, this value disables the policy.


    Default: This policy is not defined, which means that the system treats it as 15 minutes for servers and undefined for workstations.


    Hope this helps.


    Jeremy Wu

    TechNet Community Support

    Friday, May 04, 2012 9:38 AM