0

We have a straight forward domain logon script with a line along the lines of
net use s: \\server\share However, this isn't working correctly with Windows 8 / 2012 machines.

The strange thing is that if you attempt to do this manually on one of the affected machines it will complain that the drive is already mapped - you can see the mapping from the command line however it does not show in Windows Explorer.

kafka
  • 547
  • 2
  • 15
  • 27
  • Try doing a `net use s: /delete` first. – Nathan C Aug 28 '13 at 11:30
  • Although I haven't mentioned it does do this - we recently changed the location of the s: drive so to ensure everyone migrated over correctly we do a delete first. – kafka Aug 28 '13 at 11:53
  • Could be that the S: letter is already used? check the disk management first or try a different drive letter. – Noor Khaldi Aug 28 '13 at 12:04
  • No the S: isn't already used - and if it is the mapping is deleted. I'm looking into Win 8 handling it differently depending on user/admin privileges. – kafka Aug 28 '13 at 12:06
  • Just a suggestion: why don't you use separate group policy object for mapping net shares instead of doing this with a script? – strange walker Aug 28 '13 at 12:30
  • This is an option I will take a look at. – kafka Aug 28 '13 at 12:41

1 Answers1

1

Just a hunch: Is the user local administrator on his/her Win8 workstation? The reason I'm asking: Logon Scripts actually run elevated if the user is a local administrator. This in effect performs the drive mapping in the user's elevated session, not the "normal" session.

Microsoft's recommendation is to use Group Policy Preferences for drive maps, as these run in the correct session.

You can test this theory out by (temporarily) removing the user from the local admin group on the workstation where he/she logs on to.

Trondh
  • 4,201
  • 24
  • 27