PowerTip: Use PowerShell to Find Disabled User Accounts

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to easily find disabled user accounts in Active Directory.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find disabled user accounts in Active Directory?

Hey, Scripting Guy! Answer Use the Search-ADAccount cmdlet from the Active Directory module:

Search-ADAccount -AccountDisabled

 

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

No Comments.