12.04.2013

Search for All Active Directory Accounts that are disabled

 Search for All Active Directory Accounts that are disabled

 This only works on 2008 R2 as it has built in Active Directory PowerShell.
Search-ADAccount -AccountDisabled -UsersOnly | Format-Table name, sid -AutoSize
When the Search-ADAccount command runs, the output appears that is shown in the following image.



Image of output of Search-ADAccount command

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.