1. Open notepad from run command or start menu.
2. Enter command “net use Z: \\DDC2\Temp”
3. Save notepad as a Batch file “filename.bat”
4. Open local group policy “gpedit.msc”
5. Navigate to user configuration> windows settings> scripts(logon/logoff)> Logon
6. Click on show files and navigate to the location and copy the batch file.
7. Click add and select the copied batch file.
8. Run command “gpupdate /force” in cmd