I'm trying to map a network share in Windows Server 2008 R2 x64 for hours now. We have an AD Domain, DNS, etc. It is working. I have a batch file which contains only 1 line.
net use z: \\Storage\backup /persistent:yes
and I have a GPO. What I tried until now:
Setup batch file in the GPO as
Startupscript (Computer Configuration - Windows Settings - Scripts - Start), put the batch under
setup batch file as
Logonscript (User Configuration - Windows Settings - Scripts (Logon/Logoff) - Logon),
put it under
and also under
Then I discovered that Logon scripts and UAC don't play well together, so I tried Microsoft's preferred workaround described here.
So same thing as above with launchapp.swf and my batch as parameter. I also tried "EnableLinkedConnections" as described here. And I have "Always wait for the network at computer startup and logon" enabled in the GPO. The user on the Server is a local administrator and I can not change this. I'm viewing the server via Remote desktop and I always did
gpupdate /force after changing the GPO...
The drive won't map and I don't see an entry in the Event Viewer. I'm lost and frustrated, please put me in the right direction.
The share is read only for normal users and writable for the user who logs on to the server which I want the drive mapped to. If I execute the batch and/or the launchapp.wsf after logging in, everything works fine. Sorry for my bad english.