How to add user in windows through command
We always get requirement to add multiple users to local or domain. So below are the domain name
To add a new user account on the local computer:
net user username password /ADD
Example: To add a new user account with the loginid John and with password “Password@123”
net user John Password@123 /ADD
To add a new user account to the domain:
net user username password /ADD /DOMAIN
Example:
net user John Password@123 /ADD /DOMAIN
How to create a new administrator account?
net localgroup group_name UserLoginName /add
Example:
net localgroup administrators John /add
Latest posts by Ravi Chopra (see all)
- Essential Network Ports for Active Directory, DNS, DHCP, and ADFS - 9 September 2024
- Which RSAT Contains Active Directory Users and Computers Windows 11? - 8 September 2024
- Group Managed Service Accounts (gMSA): Benefits, Creation Steps, and Detailed Guide - 8 September 2024