DNs can be found in AD Explorer.
Script:
$root=[adsi]””
$rootdn=$root.distinguishedName
$group=[adsi](“LDAP://<Group DN>”)
$group.add(“LDAP://<User DN>”)
Making Virtues out of Necessities
DNs can be found in AD Explorer.
Script:
$root=[adsi]””
$rootdn=$root.distinguishedName
$group=[adsi](“LDAP://<Group DN>”)
$group.add(“LDAP://<User DN>”)