Network drive map through GPO not working on Windows 2012 (Neither via logon script nor drive maps)
Solution 1
I just ran into this issue on a Windows 10 laptop and learned that it's a known issue with Windows 8/10 and Server 2012.
If the reconnect option is checked in the drive map, it will just fail, no errors or issues in event viewer that I could see. As soon as I unchecked the reconnect option, replicated changes and then ran gpupdate /force on the Win 10 laptop in question the drive mapped without issue.
Check this link for further details and screenshots
Solution 2
Given that you've tried two techniques without success, I'd say this is almost certainly going to come down to a permissions issue.
Go back to using Group Policy Preferences - you can then review the event log to see why they're failing.
Edit: Please don't use the Default Domain Policy for this stuff, if you break it you'll be stuffed. Create a new GPO and link it as appropriate.
Related videos on Youtube
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on September 18, 2022Comments
-
Admin almost 2 years
Although I thought this would be easy I am unable to automatically connect to a network drive via GPO.
I tried through a batch file on (User Configuration / Policies / Windows Settings / Script / Logon) which I made sure to browse via NETLOGON share.
File Content:
net use z: \\\Shares\DMS
A finally I also used the Drive Maps (User Configuration / Preferences / Windows Settings / Drive Maps) with following parameters:
Action: Replace - Location: \Shares\DMS - Reconnected: Checked - Use: Z: - Hide/Show this drive: Show this drive - Hide / Show all drives: Show all drives.By reading some tips in the Internet I also disabled the fast logon.
Just to make sure, I tested the batch file and the NETLOGON share in a target laptop, and everything worked fine.
This is the gpresult /z for a target laptop:
Logon Scripts
GPO: Default Domain Policy Name: \\PM01-W12-DCO\netlogon\logon.bat Parameters: LastExecuted: This script has not yet been run.
-
Admin almost 10 yearsHi Dan. Does this help us somehow? Logon Scripts ------------- GPO: Default Domain Policy Name: \\PM01-W12-DCO\netlogon\logon.bat Parameters: LastExecuted: This script has not yet been run.
-
Dan almost 10 yearsNo - use Preferences and take a look using Event Viewer
-
Admin almost 10 yearsSorry for being so noob, but I am afraid I dont know how to do that. What exactly do I have to do in the preferences? What kind of log do I have to check. Thanks!
-
bvj almost 8 yearsThere are no apparent drive mappings involved.