![Expert Guide to Controlling User Profiles in Windows](https://thmb.techidaily.com/fdc25fa9e7d76ca87920564362f13d91c2db273783ec5bcb39c2377739cf581a.jpg)
Expert Guide to Controlling User Profiles in Windows
![](/images/site-logo.png)
Expert Guide to Controlling User Profiles in Windows
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
company, user or members of the same household. Action! - screen and game recorder</a>
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.
WPS Office Premium ( File Recovery, Photo Scanning, Convert PDF)–Yearly
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] In 2024, Navigating the Complex World of Video Text Implementation (Vimeo)
- [New] In 2024, Streamlined Processes Transforming Mac Videos Into Snaps
- [New] Projection vs Television Best Device for Immersive 4K Content
- [Updated] Elevate Video Engagement Top 7 Free Thumbnail Design Tools for 2024
- 5 Essential Android Image Tweakers
- A Musical Guide to Enhancing Slides with Tunes
- Actions for Correcting Windows 11 0X800F0922 Error
- Add Command to Windows 11 Context Menu for File Moves & Copies
- Addressing Application Support Limitations on Windows 7
- Addressing Captioning Faults in Win 10 Systems
- Addressing Faulty Display Settings via Nonfunctional Fn Button in Windows 11
- Addressing Windows Steam Login Errors
- Adjusting Metric Monitoring of Wifi Networks via Win11 Settings
- Advanced BeFree Manfrotto Tripod: Superior Performance
- Assessing Usage: Windows' Hidden Reliability Vs. Performance Tools
- Assuring Proper Operation of Windows Monitor App
- Big Byte in Mini PCs, But Barely Booming
- Boosting Sync: Launch Sticky Notes with Windows Start-Up
- Boosting WinOS: Stop Autominize Apps
- Bypass Windows Folder Permission Snags Swiftly
- Bypassing Blunders: Fix Windows Color Management Fiascos
- Bypassing Xbox Game Pass Error on Latest Windows PCs
- Calendar Setup Made Simple: Windows 11 Edition
- Clear Up Window's Icon Layout Confusion
- Clearing Up Win11's Cursor Blackout Quickly
- Command Prompt Mastery: The Fundamental 20 CMD Commands to Know
- Comprehensive Guide to Fixing Device Path Errors
- Conquering Idle Computing with Auto Sleep in W10/W11
- Converting Files: A Step-by-Step Windows Process
- Curbing High CPU Utilization by TiWorker.exe Programs
- Delving Into Windows Tools: CHKDSK, SFC & DISM's Functions
- Digital Revolution at Your Fingertips - Master Paint Updates
- Engaging Tactics for Increased Subscriber Count for 2024
- In 2024, Mastering the Art of Unblocking TikTok
- In 2024, Must-See VR Platforms and Places
- In 2024, Quintessential Scene Composer's Haven
- Innovative Techniques for Capturing Every Play of Your PS3 Games for 2024
- Microsoft To-Do Not Sync? Follow These Steps Now!
- Revolutionizing Image Capture with iOS 11 Updates
- Unlock Apple iPhone 14 With Forgotten Passcode Different Methods You Can Try
- Title: Expert Guide to Controlling User Profiles in Windows
- Author: Joseph
- Created at : 2024-08-08 06:13:27
- Updated at : 2024-08-09 06:13:27
- Link: https://windows11.techidaily.com/expert-guide-to-controlling-user-profiles-in-windows/
- License: This work is licensed under CC BY-NC-SA 4.0.