Showing posts with label Ldap Filter. Show all posts
Showing posts with label Ldap Filter. Show all posts

13 November 2017

Ldap filter to recursively find all groups a user is member


Get-ADGroup -LDAPFilter "(member:1.2.840.113556.1.4.1941:=CN=Uservane,OU=Users,DC=domain,DC=local)"

04 February 2016

Ldap filter for deleted objects


to get all deleted computer accounts:


Get-ADObject -LDAPFilter "(&(ObjectClass=computer)(isDeleted=*))" -IncludeDeletedObjects -Server servername