In this video we will be managing our Local Admins with Group Policy’s. In the first part i will show you how to delete all die local administrators and only leave the Domain Admins. In the second part we will be using the Managed By field in Active directory to assign a ‘Primary User’ to the workstation. With this the ‘Primary User’ has local admin rights only on that assigned workstation.

Screenshots + Ldap Query’s

Assign users

Item Level targeting

LDAP Query

1st LDAP Query:

(&(objectCategory=computer)(objectClass=computer)(name=%COMPUTERNAME%))
managedby
PrimaryUser

2nd LDAP Query:

(&(|(objectClass=group)(objectClass=user))(distinguishedName=%PrimaryUser%))
sAMAccountName
PrimaryUser