User Tools

Site Tools


win:network_drives

Network Drives

Not Reconnecting at Startup

There is an issue with network drives that are set to be mapped on startup, where windows attempts to map them before the network has been initialised properly.

A partial fix for this is to give the computer a static IP address, this works most of the time because it causes the network to be ready faster, but not always and may not be an option.

A better option is to make a scheduled task that runs when the network is available, as described in Setup.

Admin Access to User Shares

Another issue is programs that are run as administrator don't have access to shares mapped as a user.

To work around this problem, configure the EnableLinkedConnections registry value. This value enables Windows to share network connections between the filtered access token and the full administrator access token for a member of the Administrators group.

Setup

  • Open the network tab in Explorer and connect to the network share to authenticate for the first time, make sure to select Remember my credentials
  • Open Task Scheduler
  • Action > Create Task
  • General:
    • Name > Reconnect Network Drives
    • Run only when user is logged on
    • Configure for > Windows 10
  • Triggers > New:
    • Begin the task > At startup
  • Conditions > Network > Start only if the following network connections are available
  • Actions > New:
    • Action > Start a program
    • Program/Script > cmd.exe
    • Add arguments:
/c "net use R: "\\FileServer\Public" & net use S: "\\FileServer\Documents" & net use T: "\\FileServer\Photos" & net use U: "\\FileServer\Music" & net use V: "\\FileServer\Video" & net use W: "\\FileServer\Software" & net use X: "\\FileServer\Dereks Documents" & net use Y: "\\FileServer\Downloads" & net use Z: "\\FileServer\Dereks Backups""
  • Download and run the following file to make the change to the registry:
ShareNetworkShares.reg
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001
win/network_drives.txt · Last modified: 2020/06/14 16:14 by derek