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.