Get-AdObject complex filters


hi all,

here command ad users in specified ou

get-adobject -filter {objectclass -eq "user"} -searchbase $customou

but need users entire domain filter "not in these ous"

any idea?

maybe this:

get-aduser -filter "distinguishedname -notlike "*,ou=badou,dc=somedomain,dc=com"


hope helps! jason



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

ADCS Policy Web Service - Access was denied by the remote endpoint. 0x803d0005 (-2143485947)

File Share Witness is not a valid File share path