How are local accounts created on Nano Server
Create local accounts on Nano Server
John Savill
March 25, 2017
1 Min Read
![How are local accounts created on Nano Server How are local accounts created on Nano Server](https://eu-images.contentstack.com/v3/assets/blt07f68461ccd75245/bltb31295ef73e35bc8/661cf6b578740ef2916b649a/windowsserver-2016_6_0_4.jpg?width=1280&auto=webp&quality=95&format=jpg&disable=upscale)
Q. How do I create local accounts in Nano Server?
A. To create local accounts on a Nano Server instance once you have a session on the box you can use one of two methods
The first is to leverage net.exe, e.g.
net user /add
net localgroup administrators /add
Or leverage the new PowerShell local group module in PowerShell 5.0.
$securePassword = ConvertTo-SecureString "Pa55word" -AsPlainText -Force
New-LocalUser -Name "johnloc" -Password $securePassword -FullName "John Savill" -Description "John Savill Local Account"
Add-LocalGroupMember -Group "Administrators" -Member "johnloc"
You can also leverage Server Management Tools.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like