Categories
Powershell

Powershell : Find users based on specific property and location

get-aduser -filter * -SearchBase "OU=XXX, OU=XXX, DC=XXX, DC=XXX, DC=XXX, DC=XXX" -Properties PasswordLastSet