Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

How do I quickly create user accounts via command line?


Under Windows 11, 10, ...and MS Server OS you can use the command prompt to quickly create user accounts via command line!



In certain situations, you may need to create multiple user accounts on Windows that should be available on a Windows device. Or you want to test software under other user accounts with less access rights. Here is a simple method that works on all Windows operating systems. For this you need the required access rights, or an user account with administrative rights.


1.) ... Quick create windows user accounts!
2.) ... Remove unnecessary windows user accounts quickly!
3.) ... quickly turn users into administrators!
4.) ... Quickly change, delete, set the password for the user!



See also: ► scans all protected system files (command-line)!

1.) Quick create windows user accounts!

Open / Start the windows cmd.exe or start a program like the  ColorConsole.  
 
Now all you have to do is run the right commands, as needed, to determine how many user accounts are needed.
 
Here in the example the default account user-1 is created, because Windows creates this as a default user when creating a new user, this must be added to another group if necessary and also removed from the default user. 
 
(Creating of user accounts "User-1" to "User-3") 

net user "User-1" /add 

net user "User-2" /add 

net user "User-3" /add 
 
It is not possible to overwrite the user accounts because an error message appears when entering existing user names!  (... see Image-1)

(Image-1) Create user accounts via command line!
Create user accounts via command line!

-
▲ Back to the top ▲




2.) Remove unnecessary windows user accounts quickly!

With the simple parameter /delete in place of /add, you can immediately delete the incorrectly created user accounts. (... see Image-2) 
 
Tip: If one of the users should only have guest access rights! 
 
Add command 1 ("User-1" to the guest group) 
net localgroup guests "user-1" /add 
 
command 2 (remove" user-1 " from the default user group) 
net localgroup user "user-1" /delete

(Image-2) quickly delete windows user accounts via command line!
quickly delete windows user accounts via command line!

-
▲ Back to the top ▲



See also:  
►►►  How do I list all users? 
►►►  How do I list files in all subdirectories?

 

These NET command commands are quite handy as they can be used on all operating systems such as Windows 11, 10 Pro, Enterprise, Home, Windows 8.1, Windows 8, Windows-Server 2019, 2016, 2012, Windows 7 Basic, Professional, Starter, Ultimate  this of course refers to Windows NT systems, certainly there are similarly powerful commands under Linux, Android and MAC OS, with which one can achieve the same. 

3.) Quickly turn users into administrators!


Here is the example to make a user admin   

/add is to add 

/del while then to remove administrative rights 

on the point group: Administrators can you use other groups too 

►► User groups?   Plain  net localgroup command



C:\Windows\system32> net localgroup administrators "user-1" /add
The command ran successfully.


C:\Windows\system32>




4.) Quickly change, delete, set password for the user!

User name and a simple * (asterisk) at the end 

If necessary, confirm the password with [Enter] [Enter] to remove the password 

►►  User groups?  



C:\Windows\system32> net user "user-1" *
Enter a password for the user:
Re-enter the password:
The command ran successfully.
C:\Windows\system32>



P.S. Attention! The newly entered password is not displayed in the CMD, the text cursor always remains at the first position! By confirming the password, you will know whether you entered it correctly.


FAQ 28: Updated on: 18 September 2022 20:00 Windows
Windows-Console

How to list (see) all users via command line?


You can quite simply and quickly list all users user accounts, user groups or export them to a file. This is available in both console app, the classic
Windows-Console

Command Line to list / cancel print jobs / Example?


Under Windows 11, 10, . and MS Server OS, you can also quite easily list the print jobs via the command line abort / stop For this purpose, the WMIC
Windows-Console

Move Files with Powershell and CMD (examples)!


The solution is quite easy to move with Powershell and / or cmd.exe files, or folders, here with examples Moving files sometimes makes more sense at the
Windows-Console

Date / time change command prompt, with examples, how to?


The solution is quite simple to use the cmd.exe command line to change the date or time Changing the date or time is sometimes quicker via the command line
Windows-Console

CMD commands to control power settings under Windows, with examples?


There are commands to control the power settings under Windows, it makes sense if you want to change them by batch file on Windows OS Here are a few examples,
Windows-Console

Using PowerShell and CMD to delete complete directories, with examples?


You can use PowerShell and / or cmd.exe to delete complete directories in one go with subdirectories on Windows 11, 10, Deleting of Directories Preface:
Windows-Console

Command line CMD background change color, but how, with example?


Also during the command input you can change the CMD background color by command and the text, here an example The color values ​​can be indicated by two

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. How do I add users via the CMD, I need to add new users on a Windows desktop PC, I don't have a script, can I still just use commands on the command line to add new users or even set passwords?
  2. Can I grant admin permissions using the CMD in command prompt, need guide with the easiest way to add local users to windows using command prompt?
  3. For example, I want to add a password to a user, or even without a password for the account using a command from the command prompt?
  4. How do I use command to create a new user from the command line i.e. user username password or even give or grant admin rights to the new user?
  5. What should I know if I want to add users in the command prompt as an administrator to manage them?
  6. How do I grant a user admin permissions in the command prompt to make plain standard user an admin?
Keywords: windows, 11, 10, server, eleven, console, quickly, create, delete, user, accounts, command, line, prompt, group, guests, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + MeinPlatz
  + DesktopOK
  + ProcessKO
  + WinBin2Iso
  + ThisIsMyFile
  + TheAeroClock
  + CoronaKO
  + MatriX.CoronaKO
  + Find.Same.Images.OK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.061


► Desktop Notes for Windows 11, 10, ... Desktop, alternative to MS Short Note APP! ◄

► Does the energy efficiency improvement tool work on MS Windows 11? ◄

► Can I use the desktop calendar in Office for commercial purposes? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....