0

In our Windows domain I would like to map a file server's share to drive letter whenever an authenticated user logs in to a desktop, but not when a user (any user) logs into a server. Is there a way to do this through GPO? Basically a GPO based that matches user and computer?

Roberto
  • 75
  • 1
  • 9

1 Answers1

1

One way to do this is to detect the operating system in the script and only map the drives if the operating system doesn't contain the word "server" in it. (Perhaps with a Powershell (gwmi win32_operatingsystem).caption.)

Another is to apply a WMI filter on the group policy object assigning the logon object. If you filter for select * from Win32_OperatingSystem where ProductType="1" this will limit the execution to client operating systems.

enter image description here

This WMI filter can be added where the GPO is linked.

enter image description here

Katherine Villyard
  • 18,550
  • 4
  • 37
  • 59