How to make network drives appear even if disconnected?

10,462

Solution 1

Did you try a simple batch script, like:

subst K: c:\path

adjust the drive letters and the path, save it as file with bat-extension and put this in your startup folder (usually \Users\All Users\Microsoft\Windows\Start Menu\Programs\Startup)

Solution 2

You may want to consider linking the login and desktop security contexts using this registry hack:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System EnableLinkedConnections = 1

You can also try to delay the execution of group policy (and your logon scripts) by adding a new DWORD called GpNetworkStartTimeoutPolicyValue with Decimal Value 300 (for five minutes) at this registry location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Share:
10,462

Related videos on Youtube

Jake
Author by

Jake

Updated on September 18, 2022

Comments

  • Jake
    Jake over 1 year

    Windows 7 and Vista laptops in my company domain has network drives set up by Win2k8 Server GPO. Normally, when the laptops has ethernet cable plugged in before boot, the network drives connect and appear as expected at the end of startup sequence.

    However, when the laptop has ethernet cable unplugged, the network drives are not connected, which is fine, but the disconnected icons disappear as well. i.e. the drives are not set up.

    At the end of the startup sequence, upon reaching desktop, the wireless adapters will connect to the network and the laptop will be able to find the network drive. Hence I want the drives to be setup nonetheless, so that the next attempt to connect, say, via a desktop shortcut, will reestablish the network drive connection. How can this be done?

    I want to see disconnected drives such as these

    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 almost 12 years
      Using a script to map drives is not "hacky", especially when resource availability is delayed during login by user-space things like Wireless connection agents. Besides, I doubt your users would care how you do it. ;)
    • Jake
      Jake almost 12 years
      For the folks I have here, anything beyond their comprehension is a hack. To them, it must work if I say it should. period. Anything else is my fault. So if they see the drives there showing the disconnected icon, they will believe is a Windows feature. If I tell them "please double click the network.bat if you don't see your drives" they will think is my fault that I am not setting up properly for them, causing them to have one more step to work after logging in.
    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 almost 12 years
      I was talking about logon/logoff scripting, not a batch file they click. ;) Really though you're mapping should work at login, if not, you might have bigger problems. ;)
    • Jake
      Jake almost 12 years
      I'll try, but if the GPO for drives doesn't work, I doubt the logon scripts will work. Also the other issue is that some machines are laptops. I don't want the network drives to disappear. Ideally, they should stay in My Computer and when the user connects to VPN, the drive is accessible again.
    • Jake
      Jake over 11 years
      @techie007 In reference to your question, I am using GPO Management Editor > User Configuration > Preferences > Drive Maps