PowerTip: Create a New User in Active Directory with PowerShell

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon