Creating and managing user accounts is a common Active Directory administration task. Windows PowerShell provides considerable flexibility in how this can be done on the Windows Server 2012 platform. Typing Get-Command *ADUser at a Windows PowerShell prompt shows there are four cmdlets for managing users accounts:
- New-ADUser Creates a new Active Directory user
- Get-ADUser Gets one or more Active Directory users so that you can perform some action with them
- Set-ADUser Modifies the properties of an existing Active Directory user
- Remove-ADUser Removes the specified user from Active Directory
Any administration of user accounts using Windows PowerShell involves using one or more of these cmdlets.
This tip is excerpted from my latest book Training Guide: Installing and Configuring Windows Server 2012 from Microsoft Press.
Mitch Tulloch is a nine-time recipient of the Microsoft Most Valuable Professional (MVP) award and a widely recognized expert on Windows administration, deployment and virtualization. For more information see http://www.mtit.com.