Scripting Blog [archived]

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

Use PowerShell to Modify Existing User Accounts in Active Directory

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to modify existing user accounts in Active Directory.Microsoft Scripting Guy, Ed Wilson, is here. The other day, I recorded a TechNet Radio podcast with Blain Barton and Matt Hester named, “The 10 non-scary things about Windows PowerShell 3.0.” It ...

PowerTip: Use a Single Line PowerShell Command to List All Users in an OU

Summary: Use a single line Windows PowerShell command to list all users in an OU. (image)  How can I list all users in a particular organizational unit (OU)?       (image)  Use the Get-ADUser cmdlet from the ActiveDirectory Module (available from the RSAT tools). Specify the SearchBase as the name ...

Create Test Users in a Test Active Directory Environment by Using PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, creates a bunch of test users in a test AD DS environment by using Windows PowerShell. (image)  Hey, Scripting Guy! I have a problem at work. It seems that the people who fill out titles and descriptions for the users in Active Directory do not follow a standard naming convention—...

PowerTip: Find PowerShell Aliases for Cmdlets from a Specific Module

Summary: See how to find all Windows PowerShell aliases for cmdlets and functions exposed by a specific module. (image)  How can I find all of the aliases defined for commands (functions or cmdlets) in a specific module?         (image)  Use the Get-Command cmdlet (gcm is alias) to return all the commands ...