Windows 2008 and 2012 domain administrators and users may encounter issues with Visual Basic Scripts designed to Map network shares and drives during logon sessions. There may be group policy lock-downs or domain level lock-downs at the registry level which will prohibit VBS from running at logon. Why spend hours tinkering with scripts when you can perform the same task with a few clicks within group policy. Follow the directions below to Map network drives for all domain users.
Drive Map preference items allow you to create, replace, update, and delete mapped drives and their associated properties.
Creating a Mapped Drive item
To create a new Mapped Drive preference item
- Open the Group Policy Management Console . Right-click the Group Policy object (GPO) that should contain the new preference item (Default Group Policy or Domain Group Policy), and then click Edit .
- In the console tree under User Configuration , expand the Preferences folder, and then expand the Windows Settings folder.
- Right-click the Drive Maps node, point to New , and select Mapped Drive .
- In the New Drive Properties dialog box, select Create
- In the Location field enter drive map location of the file share.
- Select the Reconnect check-box
- In the Label as field, enter the desired name/label for the Mapped Drive – ( this label will represent the name of the mapped drive)
- In the Drive label section, select the Use radio button and click the drop-down menu to select your desired drive letter
- Click the Common tab, configure any options, and then type your comments in the Description box. (For more information, see Microsoft Windows Configure Common Options .)
- Click OK . The new preference item appears in the details pane.
- Right click the GPO and ensure the Enforced option is set
- Close all open windows
- Open a command prompt and execute to following command on all clients and machines where the GPO is applied –> gpupdate /force
- If drive is not mapped on client machines, reboot clients and verify mapped drives