Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Find Locked-Out User Accounts

Summary: Use a one-line Windows PowerShell command to find and unlock user accounts.   Hey, Scripting Guy! I am trying to find users who are locked out. For example, I have a number of users who log on only occasionally. They constantly lock themselves out. I have seen some VBScripts to search for locked out user accounts, and even a ...

Install Active Directory Management Service for Easy PowerShell Access

Summary: In this step-by-step blog post, the Microsoft Scripting Guy covers installing the Active Directory Management Service for Windows PowerShell access to Active Directory Domain Services.   Hey, Scripting Guy! I read with interest your blog post yesterday about using the Microsoft Windows PowerShell cmdlets to work with users in ...

Use Active Directory Cmdlets with PowerShell to Find Users

Summary: Learn about the Microsoft Active Directory Windows PowerShell cmdlets, and use them to find active and disabled users.   Hey, Scripting Guy! I am wondering what the best way is to use Windows PowerShell to work with Active Directory. I have seen all different methods talked about on the Internet, and many of them require ...

BATCHman Faces the Distractful Poker and Recovers Deleted Active Directory Items

Summary: In today’s gripping episode, BATCHman squares off with the Distractful Poker and recovers items deleted from Active Directory Domain Services using Windows PowerShell.   Microsoft Scripting Guy Ed Wilson here. Windows PowerShell MVP Sean Kearney is with us again today with part 3 of the BATCHman series. Whenever trouble ...

Feedback usabilla icon