Get SID of user

In Windows environment, each user is assigned a unique identifier called Security ID or SID, which is used to control access to various resources like Files, Registry keys, network shares etc. We can obtain SID of a user through WMIC USERACCOUNT command. Below you can find syntax and examples for the same. Get SID of … Read more

Change user password in Windows command line

We can change a user password from Windows command line using net user command. The command is explained below with examples. How to change local user password net user  loginid  newpassword For example, if you want to reset the password for the user John on the local computer, you can run the below command. Let’s … Read more

Manage user disk quotas in Windows

If a computer system is shared by multiple users, then it’s a good practice to enforce disk quotas on users.  If disk usage is not restricted,  if one user stores lot of data, then it might lead to less free space on the disk and eventually causing problems to other users of the computer. This … Read more

Net user command : Manage user accounts from command line

Using Net user command, administrators can manage user accounts from Windows command prompt. Below are some examples on how to use this command. Add a domain user account: Net user /add username  newuserPassword /domain Add new user on local computer: Net user /add username newuserPassword Advanced options to add new user account can be read … Read more

Enable or Disable user account from command line (CMD)

To disable a user from logging into system, we can disable the account by opening computer management console and double clicking on the entry for the user and then by selecting the check button “Account is disabled” We can do the same by just running a simple command from Windows command line. For example, to … Read more

List of user groups command line

On Windows OS we can find the list of local user groups created on a system from Control Panel -> User Accounts. This information can be obtained from command line also using net command.  Syntax is shown below. net localgroup Example: Running this command shows the following local groups on my system. C:>net localgroup Aliases for … Read more

Create a user group command line (CMD)

We can create a local user group from Command Prompt (CMD) in Windows 11 and Windows 10 using the ‘net localgroup‘ command with the /add option. Open Command Prompt as administrator to create or delete a local group. Put group names containing spaces in quotes. net localgroup “group-name” /add Example: To add a new group … Read more

Run command for user accounts and groups

Learn how to open Local users and Groups console from Run window. In this console, administrators can perform operations like creation/deletion of user accounts, resetting user password etc. Execute the command lusrmgr.msc to open user accounts window from Run. However, on Windows 11 and Windows 10 we need to run a different command. On earlier … Read more

Add user to group from command line (CMD)

Windows provides command line utilities to manage user groups. In this post, learn how to use the command net localgroup to add a user to a local group from Command Prompt in Windows 11 and Windows 10. Add user to a group Follow these steps: Open elevated command prompt Run the below command net localgroup … Read more

Delete user account from command line

We can use the below commands to delete a user account using Windows command prompt. To delete a user account of the local system Open Command Prompt as administrator. Replace username with the account name; use double quotes if it contains spaces. Before deleting the account, back up any files you need and make sure … Read more