Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Sort an Active Directory User Group’s Members by Using PowerShell

Summary: Sorting lists of data in VBScript often involved writing complex code. The Sort cmdlet in Windows PowerShell makes that task easier.   (image) Hey, Scripting Guy! I need to be able to use Windows PowerShell to list the members of a group in Active Directory Domain Services (AD DS) in alphabetical order. The reason for this is ...

How to Change a User's Active Directory Password with PowerShell

Summary: The Scripting Guys discuss using Windows PowerShell to change a user's Active Directory password in this how-to article.   (image) Hey, Scripting Guy! I need to be able to change a user’s password by using Windows PowerShell. In the VBScript days, I had a script that I had essentially copied from the How Can I Change a User...

Using PowerShell to Find All Disabled Users in Active Directory

  Summary: The Scripting Guys discuss three different approaches to finding disabled user accounts in Active Directory Domain Services by using Windows PowerShell.   (image) Hey, Scripting Guy! I would like to use Windows PowerShell to search Active Directory Domain Services (AD DS) for user accounts that are disabled. I had a ...

Hey, Scripting Guy! Can I Query Active Directory for Users Whose Passwords Don't Expire?

 (image)   (image) Hey, Scripting Guy! I am interested in using Windows PowerShell to query Active Directory. We have deployed Windows Server 2008 R2 on our domain, and upgraded one of our domain controllers. I would like to be able to query for a list of all users whose passwords do not expire. When I did a Bing search, I was able ...

Hey, Scripting Guy! How Can I Use Windows PowerShell to Search Active Directory?

 (image)   (image) Hey, Scripting Guy! I often need to search Active Directory Domain Services (AD DS) to find information about various computers. I may need to identify all of the computers in a particular organizational unit or all the computers who happen to reside in a particular office. Whatever the reason, using Active X Data ...