Mounting a persistent network drive on logon via batch and local group policy
In some instances (separate RDS server) it may be necessary to mount a network drive on boot for all users. this can be achieved with a simple batch file and a group policy setting
Instructions
net use e: /delete
net use e: \\GG-BEPOZ-HO\data
net use f: /delete
net use f: \\GG-BEPOZ-HO\bepozint
-
Place file on machine which needs the drive mounted for all users in: C:\Windows\System32\GroupPolicy\User\Scripts\Logon
-
Within the local Group Policy Editor, User Configuration, Scripts (Logon/logoff), Logon Scripts, add and browse to the batch file you placed in the previous step
This will now mount the drive(s) for all users as they log on