Scripting Blog

A place to learn about PowerShell and share stories of automation

PowerTip: Create a New User in Active Directory with PowerShell

Summary: Use the Active Directory module to create a user with Windows PowerShell.    How can I create a user in Active Directory with PowerShell?  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 ...

Building a Demo Active Directory: Part 4

Summary: Use Windows PowerShell to generate random users in Active Directory.  Hey, Scripting Guy! Is there an easy way to take a list of names and generate random combinations for sample users in Active Directory? —LD  Hello LD, Honorary Scripting Guy, Sean Kearney here, filling in for our good friend, Ed. To catch up on the ...

Building a Demo Active Directory: Part 3

Summary: Create security groups in targeted organizational units in Active Directory.  Hey, Scripting Guy! I was wondering if you could please show me how to use Windows PowerShell to create some security groups inside a set of organizational units in Active Directory. Is it difficult? —DS  Hello DS, Honorary Scripting Guy, ...