System Setup

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

  1. Edit batch file to be relevant, can be host name or IP 

  2. Place file on machine which needs the drive mounted for all users in: C:\Windows\System32\GroupPolicy\User\Scripts\Logon

  3. 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