![Advanced User Management via Windows Terminal](https://thmb.techidaily.com/0608abec5e89fbdabfc438dbc05f250f26c6343ebf5ad117060d9466fac18ee3.jpg)
Advanced User Management via Windows Terminal
![](/images/site-logo.png)
Advanced User Management via Windows Terminal
When managing user accounts on a Windows PC, it often makes sense to use the Settings app. After all, it provides a graphical user interface that simplifies the process. But for those who’d rather manage the accounts with fewer clicks, they can use the net user command in Command Prompt to manage user accounts on Windows.
In this guide, we’re going to show you how to use the net user command to perform various actions on user accounts on a Windows computer.
1. List All User Accounts
Before you start managing user accounts with net user, it helps to know all the user accounts on your computer. To list them all, open Command Prompt as an administrator , enter the below command, and hit the Enter key to run it:
net user
Keep the names you see in mind, as you will need them as you use the net user command.
2. Show All the Information of a User Account
You can also bring up all the important information about a user by simply typing the net user command followed by the name of the user’s name. Here’s the basic syntax:
net user Username
Let’s say there’s a user named “Jack” on the computer. To bring up their account information, you’d enter the below command, replacing Username in the above command structure with Jack:
net user Jack
Once you run the command, you’ll be able to see, the user’s full name, when their password expires, when they last logged in, whether they’re an administrator, and more.
3. Add and Delete a User Account
To add a new user in Command Prompt, you need to use the net user command followed by the name of the new account, the desired password you wish to set, and the /add switch (this tells net user that you’re adding a user). Here’s the basic syntax of the command:
net user Username Password /add
Keep in mind that all you’ll be creating here is a local account, but you can always switch a local account to a Microsoft account later on. Here’s an example of the command in action:
net user Jill Pa$w0rd /add
After you run that command, you’ll see that the new user, Jill, has been added to your computer. To delete an account, just replace the /add switch with /delete without specifying the password. Here’s how:
net user Jill /delete
Now net user will remove the account from the computer.
4. Enable and Disable a User Account
If there’s a user you wish to temporarily restrict so they can’t access their account, you can simply disable it instead of deleting it. Here’s the basic syntax of that action, making sure to use the /active:no switch at the end of the command to tell net user you’re disabling it:
net user Username /active:no
So, here’s an example of what disabling an account would look like after replacing Username with the name of the actual user account:
net user Jack /active:no
And if you want to enable a disabled account, you just have to change the /active:no switch to /active:yes.
5. Enable and Disable a Domain User Account
Sometimes, you might not want a user to access all the resources in a particular domain. The easier way to restrict them is to disable their account in that domain. You can do this by adding the /domain switch to the syntax discussed in the previous section.
Here’s the syntax for disabling an account on a particular domain using net user, making sure to replace Username with the name of the user you want to disable:
net user Username /domain /active:no
If you want to enable an account on a domain, just use the /active:yes switch in the above command structure instead.
6. Set User Account Login Times
If you want to specify the times someone can log in, you can use the /time parameter to specify the account login times. You can use the basic syntax below:
net user Username /time login_times
In the above command structure, replace Username with the user you want to limit the login times for, and login_times with a time range in the format D-D,00:00. Here’s an example of how you’d do this:
net user Jack /time:M-F,09:00-17:00
As per the example above, that user can only log in from Monday to Friday between 9 a.m. and 5 p.m. If Jack tried to log in, he’d get a message saying Your account has time restrictions that prevent you from signing in.
To remove the time restrictions, you’d use the below command:
net user Jack /time:all
Now Jack can go back to logging in whenever he wants.
7. Set User Account Expiry Date
By default, accounts are set to never expire, but you can change that if you have a user you want to be active for a specific period of time. You will need to use the /expires parameter while specifying the year, month, and expiration date. Here’s the basic command structure:
net user Username /expires:DD/MM/YYYY
An example of this in action would be:
net user Jack /expires:27/07/2024
With the above command, Windows will disable the on the date you’ve set above.
8. Change the Password of a User Account
You can also use the net user command to change the password of a user account in Command Prompt . This will make it so that you can quickly change the password of any local account with a single command, instead of having to do it through the Settings app, which requires many clicks.
The beauty of it is that you can also use it to change passwords for multiple accounts without leaving the Command Prompt window.
9. Change the Password of a Domain User Account
You can also change the password of a user on a domain by appending the /domain switch at the end of the command for changing a user account. The syntax for this is as follows:
net user Username NewPassword /domain
Again this has to be a local domain user account for this to work. So, if you changed the user account from a Microsoft account to a local account , you’ll need to switch it back to use the command.
10. Set a Password Policy for Users
If you need a particular user to change the password during their next login, you can use the net user command along with the /passwordchg:yes parameter (by default, the parameter is /passwordchg:no). Here’s the basic syntax:
net user Username /passwordchg:yes
Here’s an example of what that would look like in Command Prompt:
net user Jack /passwordchg:yes
So, the next time Jack logs into the computer, he will get a prompt asking him to change his password before he can access his user account.
11. Set a Home Directory for Users
When creating a new user profile using net user, you can set the home directory, which is where Windows will store the user’s personal files and settings. By default, Windows places the home directory of each user account in This PC > Local Disk (C:) > Users. To change this with net user during account creation, the basic syntax is as follows:
net user Username Password /add /homedir:Path-to-directory
A real-world example of this would be:
net user Jack Pa$w0rd /add /homedir:D:\Other Users\Jack
The above command will place the home directory of Jack, as it creates the account, in the D:\Other Users\Jack folder.
Take Control of Your Computer’s Users Accounts With the Net User Command
Net user is a simple command to understand, allowing you to effectively manage your accounts from one location: Command Prompt. Of course, we haven’t covered everything here, as there are too many parameters and switches to cover in a single guide.
With that said, after you’ve understood how to perform the net user actions we’ve covered, you’ll be on your way to managing accounts on Windows much quicker.
In this guide, we’re going to show you how to use the net user command to perform various actions on user accounts on a Windows computer.
Also read:
- [New] 2024 Approved Enhanced Window Recording Made Simple with Spring
- [New] How to Stream on Mixer MacOS
- [New] Mastering Content Creation Essential Tips for Snapchat Success
- [Updated] GoPro Hero4 Black VS Drift Ghost-S Which One Is Better?
- [Updated] In 2024, Mastering Marker Techniques for Efficient Video Cutting
- [Updated] Mastering Video Size for Standout Instagram Content for 2024
- 2024 Approved Dominate Your Digital Space with These 10 Follower-Boosting Hacks
- 2024 Approved Harnessing the Power of GoPro A Guide to Streaming on Facebook/Periscope
- 2024 Approved Skyrocket FB Engagement Enhancing Page Rankings
- 2024 Approved The Complete Guide to iPhone Speech Recordings
- Addressing Remote Desktop Failures in Current Windows
- AtlasOS Resurgence: Revitalize Retro Computers
- ClipIt Woes? Uncover Top Fixes for Swift Recovery
- Deciphering the Role & Usage of Windows Component Services
- Discover the Leading AI Checker Apps to Authenticate Student Writings & Reports
- Easily Record Lenovo Laptop Screen Activity
- Efficient Pathways to Windows Performance Details
- Elite Drones Awaiting Purchase for 2024
- Enhance Your Photography Skills with the Top 5 Android Editors
- Evaluating the Cost of Producing a Music Video
- Fast-Track Tips for Discovering Computer GPU Make
- Fixing Windows 10: NVIDIA/Intel Graphic Card Compatibility Issue
- From iOS to Desktop: Seamless Sync with Windows OS
- From Novices to Pros The Journey of Learning Magix Maker for 2024
- Guide for Old Ribbon Revival in New Windows
- Guidelines for Resolving Roblox Glitches on PC
- How to Alter Windows Dashboard Imagery Effortlessly
- How to Reset VMware Errors on Windows 11
- How to Use Face ID to Pay for Apps on iPhone 12 Pro Max?
- Immerse in Vividness: Adding Life-Like Wallpapers on Windows 11
- In 2024, Non-Sport Spectacles in the Top Ten Front Rows
- In 2024, Syncopating Scenes & Beats The TikTok Video Guide
- In 2024, The Dynamics Behind TSeries' YouTube Earning Patterns
- Lowering Intensive Resource Usage: Managing Dropbox's CPU in Windows
- Overcoming the Connection Problem with MB Services in Win11
- PLUG-IN PROWERIES Expert Analysis for 2024
- Reclaim Control Over Your Screen Amidst the Dark
- Resolving Windows Update Failure: 0X800F0845 Error
- Revolutionize File Management with Windows' Automatic Deletion
- Revolutionize Your Arcade with Expansive Front Ends!
- Seamless Gaming Setup: Direct-to-Windows PS3 Pad
- Seamless Windows Integration for Steam Deck Users
- Sharpen System Speed: Lowering High Usage of Interest Tasks
- Step-by-Step Troubleshooting for Bless Unleashed Lag Spike Fixes on PC Platforms
- Step-by-Step: Setting Up Intel Network Adapters on PCs
- Stop System Spontaneities: Fixing WIndows 11 Restarts
- Strategies for Rectifying Windows ALT Key Problems (46 Characters)
- Streamline Your Windows 11 Installation with These Essential Tweaks
- Streamlining Data Views: Tabbing in Windows Explorer
- Streamlining Windows 11 Defenses: Adding Firewall to the Context Menu
- Superior PC Weather Apps Selection
- Ten Strategies to Keep Windows Safe without Bitlocker Support
- The Silent Whisperer Guide to Win11 Menu Hiding
- The Ultimate List: Elite Smart Speakers to Watch
- The Unmatched Features in Windows 10: Why It's Superior to Win11
- Universal Unlock Pattern for Vivo Y28 5G
- Title: Advanced User Management via Windows Terminal
- Author: David
- Created at : 2024-08-08 13:15:35
- Updated at : 2024-08-09 13:15:35
- Link: https://win11.techidaily.com/advanced-user-management-via-windows-terminal/
- License: This work is licensed under CC BY-NC-SA 4.0.