October 31st, 2013

PowerTip: Create a New User in Active Directory with PowerShell

Doctor Scripto
Scripter
Summary: Use the Active Directory module to create a user with Windows PowerShell.
 
Hey, Scripting Guy! Question How can I create a user in Active Directory with PowerShell?
Hey, Scripting Guy! Answer In Windows Server 2012 R2 or Windows Server 2008 R2, use the New-ADUser cmdlet.
 
To create a new user named “Doctor Scripto” in Active Directory:
 
NEW-ADUSER doctor.scripto –Givenname Doctor –Surname Scripto

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.