Windows 2022
Sponsored Link

Initial Settings : Add Local User2021/11/30

Add new Local Users.
On CUI configuration, set like follows.
[1] Run PowerShell with Admin Privilege and Configure like follows.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# for example, add [Serverworld] user
# [P@ssw0rd01] ⇒ the password you set (replace it you like)
# [PasswordNeverExpires] ⇒ set password never expire(if set default expiration, do not specify this option)
PS C:\Users\Administrator> New-LocalUser -Name "Serverworld" `
-FullName "Server World" `
-Description "Administrator of this Computer" `
-Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd01" -Force) `
-PasswordNeverExpires `

Name        Enabled Description
----        ------- -----------
Serverworld True    Administrator of this Computer

# if grant privilege to the user, add it to [Administrators] group
PS C:\Users\Administrator> Add-LocalGroupMember -Group "Administrators" -Member "Serverworld" 

# verify
PS C:\Users\Administrator> Get-LocalUser -Name Serverworld 

Name        Enabled Description
----        ------- -----------
Serverworld True    Administrator of this Computer

PS C:\Users\Administrator> Get-LocalGroupMember -Group "Administrators" 

ObjectClass Name                          PrincipalSource
----------- ----                          ---------------
User        WIN-PA24S3GQ6G3\Administrator Local
User        WIN-PA24S3GQ6G3\Serverworld   Local

# if remove an user, do like follows
PS C:\Users\Administrator> Remove-LocalUser -Name "Serverworld" 
Initial Settings : Add Local User (GUI)
On GUI configuration, set like follows.
[2] Run [Server Manager] and Open [Tools] - [Computer Management].
[3] Right-Click [Users] under the [Local Users and Groups] on the left pane and select [New User].
[4] Input UserName and Password for a new user and click [Create] button. Other intems are optional to set.
[5] After creating successfully, New user is shown on the list like follows.
[6] If you'd like to set administrative priviledge to the new user,
Right-click the user and open [Properties].
[7] Move to [Member of] tab and click [Add] button.
[8] Specify [Administrators] group like follows.
[9] Make sure [Administrators] group is added on the list and click [OK] button to finish settings.
[10] In [Administrators] group properties, the user has beed added.
Matched Content