Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Windows Server 2016 Administration Cookbook

You're reading from   Windows Server 2016 Administration Cookbook Core infrastructure, IIS, Remote Desktop Services, Monitoring, and Group Policy

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher
ISBN-13 9781789135930
Length 248 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jordan Krause Jordan Krause
Author Profile Icon Jordan Krause
Jordan Krause
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Title Page
Packt Upsell
Contributors
Preface
1. Learning the Interface FREE CHAPTER 2. Core Infrastructure Tasks 3. Internet Information Services 4. Remote Desktop Services 5. Monitoring and Backup 6. Group Policy 1. Other Books You May Enjoy Index

Using PowerShell to create a new Active Directory user


Creating new user accounts in Active Directory is pretty standard stuff, but doing it the traditional way requires a lot of mouse clicks. Since we know that PowerShell can be used to accomplish anything within Windows Server 2016, but not many people actually employ it regularly, let's use this common task as a recipe to be accomplished with PowerShell rather than the GUI.

Getting ready

We will use PowerShell on our Windows Server 2016 DC in order to create this new user account.

How to do it...

Follow along to create a new user account in Active Directory by using the PowerShell command prompt:

  1. Launch a PowerShell command prompt as an Administrator.
  2. Enter the following command in order to create a new user account with very simple parameters:
     New-ADUser -Name "John Smith" -UserPrincipalName
      "[email protected]" -SamAccountName "jsmith"
  1. If you open up the GUI for Active Directory Users and Computers, you will see that John Smith...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images