I am trying to get a drive mapping script to run at logon to no avail. Here are the two methods I have tried:
Save the following batch file to the domain controller's NETLOGON share as logon.bat:
net use * /delete /yes
net use x: \\server_name\shared_directory_name
Active Directory Users and Computers
Right click domain name at top left and click Properties > Group Policy > Edit > User Configuration > Windows Settings > Scripts (Logon/Logoff) > Logon > Add...
Enter path to logon.bat (e.g., \\ACME.local\sysvol\ACME.local\scripts\logon.bat) and click OK three times
Login from workstation. Drive x: should appear in My Computer.
Here's method #2:
I created a group called "server users" then assigned my test user to that group. I then edited the group policy by placing the name and path of the script in the logon portion of the group (User Configuration\Windows Settings\Scripts (Logon/Logoff) and placed the actual script in the NETLOGON share of the server.
Neither of these have worked and I suspect I am missing something very simple. Any help would be appreciated.