User Tools

Site Tools


win:network_drives

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
win:network_drives [2018/07/17 12:34]
derek created
win:network_drives [2024/09/22 19:51] (current)
Line 1: Line 1:
 =====Network Drives===== =====Network Drives=====
  
-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 initialized properly.+====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.
  
-One way of fixing it is to give the computer a static IP address, this works most of the time because it causes the network to be ready faster, with my setup I can't do this because it seems to break some local dns things.+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.
  
-I'm testing: +A better option is to make a scheduled task that runs when the network is available, as described in [[#Setup]].
-  * Press Win+R and type gpedit.msc to start Group Policy editor +
-  * Computer Configuration\Administrative Templates\System\Logon > Enable "Always wait for the network at computer startup and logon" FIXME (Test if this works)+
  
-Another option may be to map the network drives as the system rather than as a user.+====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 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'': 
 +<code> 
 +/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"" 
 +</code> 
 + 
 +  * Download and run the following file to allow applications run as administrator to access these shares: 
 +<code reg ShareNetworkShares.reg> 
 +Windows Registry Editor Version 5.00 
 + 
 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] 
 +"EnableLinkedConnections"=dword:00000001 
 +</code>
win/network_drives.1531830847.txt.gz · Last modified: 2024/09/22 19:51 (external edit)