Scripting Blog

A place to learn about PowerShell and share stories of automation

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.  How can I list all users in a particular organizational unit (OU)?        Use the Get-ADUser cmdlet from the ActiveDirectory Module (available from the RSAT tools). Specify the SearchBase as the name of the OU, and ...

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.  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—heck, they ...

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.  How can I find all of the aliases defined for commands (functions or cmdlets) in a specific module?          Use the Get-Command cmdlet (gcm is alias) to return all the commands from the module, ...

Feedback usabilla icon