Author Posts

February 1, 2016 at 2:28 pm

Can anyone tell me what the difference is between Get-ADuser vs. Search-ADAccount?

February 1, 2016 at 2:33 pm

Search- has different criteria it accepts, and it's sometimes faster. Also, I don't think Search-ADUser existed in the original module release, which is why there's some functional overlap.

February 2, 2016 at 1:23 am

Search-ADAccount will get user, computer or service accounts for the following criteria:
AccountDisabled
AccountExpired
AccountExpiring
AccountInactive
LockedOut
PasswordExpired
PasswordNeverExpires

Get-AdUser returns user accounts that meet the supplied filter

Get-ADuser is what uou use to work with user accounts. Search-ADaccount is more for finding accounts with specific issues. Reading the detailed description on the 2 help files will give you further data

February 2, 2016 at 6:50 am

Thanks Richard and Don, I appreciate the explanations! I couldn't find the answer on the Internet anywhere. Have a good day!