author avatar
    Senior Program Developer
Last update by William Davis at 14 September 2026

Summary
Forgot your Windows password? No problem. Learn how to reset it like a pro with Net User. This guide covers everything from understanding the command to avoiding common pitfalls. Say goodbye to locked accounts and hello to easy password changes in Windows 10 and 11.




A strong, secure password is essential for protecting your Windows 10 and 11 accounts from unauthorized access and for keeping sensitive data safe. Changing your password doesn’t have to be daunting—even if you’re not very tech-savvy—thanks to the net user command. This chapter walks you through the command’s syntax and parameters so you can update your password with confidence. Let’s start mastering the net user command.

Understanding the Syntax and Parameters of the Net User Command

Understanding “Net User” Command Fundamentals
At its core, the net user command is the backbone of user account operations within Windows Command Prompt. By mastering this command, users gain the ability to manage account specifics with ease and expertise. This command follows a structured syntax:

net user [username] [password | *] [options] [/domain]

Here, [ username ] is the target account, [password | *] lets you set or change a password, and [ options ] specify the actions and modifications to apply, while [/domain] extends these operations to domain accounts.
net user command
Parameters at a Glance
Multiple parameters are available to manage user accounts precisely. For instance,  

/add

This parameter switch creates a new user account.

/delete

This parameter removes the account.

/active:yes|no

This parameter toggles an account’s status.

/expire

This parameter sets an account’s expiration date in a strict format without spaces (e.g., 01/09/2023 or Jan 9, 2023).

/times

It sets login hours using a range of notations (e.g., M,4AM-5PM;T,1PM-3PM). Combined, these parameters give you a full set of tools for account management.
Advanced Parameter Usage
For finer control, parameters such as /fullname:"Full Name", /homedir:path, and /scriptpath:script set a user’s full name, establish home directory paths, and designate logon scripts, respectively. The /passwordchg and /passwordreq options control password change permissions and requirements, which strengthens your security.
Executing “Net User” with Precision
Running net user takes precision. A simple net user lists user accounts, while adding a username targets one specific account. Administrators can pair these with a range of options, like /usercomment:"comment" to annotate accounts or /workstations to limit logon stations. When executed correctly, these tailored commands strengthen an admin’s ability to lock down user account settings and enforce policy compliance.
The net user command proves indispensable for Windows 10 and 11 users seeking to secure their systems through proficient password management and user account control. By leveraging its wide-ranging parameters, admins and power users alike can ensure a fortified and orderly digital environment, offering them the professional edge in systems administration.

Extra: Resetting Your Windows Password with Renee PassNow

If you forget your password and do not have a password reset disk, do not worry! You can still reset your Windows login password and regain access to your account using a user-friendly tool called Renee PassNow.
TipsIf your account is a Microsoft Account, Renee PassNow will convert it to a local account. After resetting the login password, you’ll need to reconnect your account to your Microsoft Account again.
To reset your Windows password with Renee PassNow, follow these steps:
Step 1: Download and Install Renee PassNow
Start by downloading Renee PassNow from the official website and installing it on a different computer you can access. You can choose the right version based on your computer’s operating system.
Renee Passnow – Professional Windows Password Remover

Remove Windows Login Password 3 steps for whole password remove process.

Recover the files Recover the deleted files without Windows system.

Transfer the data Transfer the important files of the computer with system.

Multifuctional Data transfer, data recovery, bootable problem recovery can be run without system.

Highly compatible Windows 11/10/8.1/8/7/XP/Vista. UEFI boot.

Remove Login Password Support Windows 11/10/8.1/8/7/XP/Vista. UEFI boot.

Recover the files Recover the deleted files without Windows system.

Transfer the data Transfer the important files of the computer with system.

Free TrialFree TrialNow 2000 people have downloaded!
Step 2: Create a Bootable USB or CD/DVD
Launch Renee PassNow and insert a USB flash drive or blank CD/DVD into the computer. Select the option to create bootable media. Follow the on-screen instructions to finish the process.
Create New Windows 10 Password Reset Disk with Renee PassNow
Step 3: Boot the Locked Server from the Bootable Media
Insert the bootable USB or CD/DVD into the locked Windows computer. Restart the computer and enter the BIOS settings by pressing the appropriate key (usually F2 or Delete). Configure the boot order so the bootable media boots first.
Common Server:
Server Type Boot menu key
DELL Press the F12 key repeatedly before the Dell logo appears on the screen.
HP Press the F9 key multiple times when the HP logo is displayed.
Common Computers:
BIOS Name Boot menu key
ASRock DEL or F2
ASUS DEL or F2 for PCs, DEL or F2 for Motherboards
Acer DEL or F2
Dell F12 or F2
ECS DEL
Gigabyte / Aorus DEL or F2
Lenovo (Consumer Laptops) F2 or Fn + F2
Lenovo (Desktops) F1
Lenovo (ThinkPads) Enter then F1
MSI DEL
Microsoft Surface Tablets Press and hold Power and Volume Up buttons
Origin PC F2
Samsung F2
Toshiba F2
Zotac DEL
HP Esc, F9 for "Boot Menu", Esc, F10, Storage tab, Boot Order, Legacy Boot Sources
INTEL F10
Boot the target PC with the created password reset USB/CD/DVD.
Step 4: Select password reset function
After the bootable media boots successfully, Renee PassNow will load. Select the “ PassNow! ” function after booting from the newly created Windows password reset disk.
<img alt="After loading into main interface, please select the “PassNow!” function." height="667" src="/wp-content/uploads/sites/2/2020/08/passnow-Step 2:png” width=”791″/>
Step 5: Resetting the Password
Choose the user account whose password you want to reset. Then click the “Clear Password” button. Renee PassNow will clear or reset the password for the selected user account.
Select target Windows system in the list
NO_TRANS:Select target user account in the list
TipsYou may also try using “Create new account” to create a new Administrator account and regain access to your computer. (The new account name will be “reneelab” and the password is “123456789” )
Step 6: Reboot the PC
Once the password is reset, remove the bootable media from the PC and restart the computer. You’ll now be able to log in to your Windows account without a password.
Now that you know how to reset your Windows password with Renee PassNow, you can confidently get back into your account if you forget your password in the future. If you run into any issues, check the following chapters for alternative methods.

Accessing the Windows Command Prompt When You Forget Your Password

If you have forgotten your Windows login password and do not have access to another administrator account, do not worry! You can still reset your password and regain access to your account using the Windows installation Media.
If you don’t have Windows installation media, you can download the Windows Media Creation Tool here:
Windows Version Download Link Requirement
Windows 7 https://learn.microsoft.com/lifecycle/products/windows-7 PC with a working Internet connection, a blank USB flash drive or DVD with at least 8 GB of available storage space, a product key
Windows 8/8.1 https://www.microsoft.com/software-download/windows8 Same as above
Windows 10 https://www.microsoft.com/software-download/windows10 Same as above
Windows 11 https://www.microsoft.com/software-download/windows11 Same as above
To begin, insert the CD/USB and restart your computer. Watch for the “Press any key to boot from CD or DVD” message and press a key when it appears. This loads the Windows installation screen.
Once the installation screen appears, press the Shift+F10 keys on your keyboard. This opens the Command Prompt window.
Press Shift + F10 to open the Command Prompt window from the Windows installation disk
Note: If you can not download the Windows installation CD, you can also use a third-party tool like Renee PassNow to reset your password. Refer to the subsequent chapters for instructions on how to do this.
If you found this chapter useful, be sure to check out the following chapters for more tips on using the net user command to change passwords for local user accounts in Windows.

Type 1: Resetting Local User Account Passwords with Net User

Accessing Command Prompt with Installation Media
Picking up where we left off, let’s look at how to use the net user command to change passwords for local user accounts when you cannot log in to Windows 10 or 11. First, you must boot from the Windows installation media and open the Command Prompt, a process we covered earlier.
Understanding the “net user” Command Syntax
The net user command is a versatile tool for user account management in Windows. To change a password, the syntax is:

net user [username] [new_password]

Replace ” [ username ] ” with the target account name and ” [ new_password ] ” with the new password. If you’d rather be prompted for the password, use an asterisk ( * ) instead of ” [ new_password ] “.
net user set password
Executing the Password Change
In the Command Prompt, type net user and press Enter to display all user accounts. Identify the account whose password you want to change. Then run the command with the correct username and new password. Remember, the password is not displayed for privacy. If you’re unsure about the command syntax, use net help user for detailed information or net user /? for basic syntax help.
net user command
Exploring Advanced “net user” Options
The net user command includes several options for account management, such as:
Activating/deactivating accounts with:

/active:{yes | no}

Setting user full names with this parameter:

/fullname:"name"

Specifying logon hours with:

/times:[timeframe | all]

These options give you granular control over user accounts and their properties. For example, to restrict user logon hours, you could use:

/times:M-F,9am-5pm

To add or change the User Comment for an account, use this parameter:

/usercomment:"text"

If you need to specify the workstations a user can log on to, which is especially useful in a domain environment, use:

/workstations:{computername[,.] | *}

Finalizing the Password Update
After changing the password, ensure to confirm it by entering it a second time if prompted. This verification step is critical to avoid mistakes. Once the password is changed, you can reboot and log in using the new credentials. This method is applicable to local accounts, not domain accounts, which require different procedures.
Alternative Tools and Methods
For those preferring a graphical interface, tools like Ophcrack or Renee PassNow provide user-friendly alternatives to the net user command. These tools guide users through the password reset process with a more intuitive approach.

Type 2: Resetting Passwords for Domain Accounts using Net User Command

Accessing Command Prompt with Elevated Privileges
To manage domain accounts, it’s essential to use the Command Prompt with administrative rights. Begin by clicking the Windows Start menu and typing CMD. Right-click on Command Prompt and select Run as administrator. This will provide the necessary permissions to execute domain-level commands.
Understanding the “net user” Command Syntax for Domain Accounts
The net user command is versatile and lets you change passwords on domain accounts. To use it correctly, add the /domain parameter to specify that the operation should run on a domain controller. The syntax for resetting a password for a domain account is:

net user [username] * /domain

Replacing [ username ] with the actual account name.
After entering the command, you’ll be prompted to type the new password. For security, the password will not be displayed on the screen. Press Enter after typing the new password, and then re-type it to confirm. It’s crucial to make sure the new password meets the domain’s complexity requirements.
Direct Password Assignment
If discretion is not a concern, you can assign a new password directly on the command line using the syntax:

net user [username] [new_password] /domain

Replace [ username ] with the account name and [ new_password ] with the password you want. This method is faster but less secure, since the password is visible during entry.
Executing Remote Password Changes
For remote password changes within a domain, you can use the Windows Management Instrumentation (WMI). Execute the command:

wmic /node:"IP_address_of_any_machine_in_target_domain" /user:"the_other_domain\any_domain_admin_account" process call create "cmd /c "net user [username] [new_password] /domain""

This will prompt for the password of the domain admin account. Note that the new password for the user must be typed directly into the command line, since the asterisk method for hidden input will not work remotely. Keep in mind that you will only receive the output of the WMI query, not confirmation that the password change succeeded, so you must verify that the new credentials are set.
Verifying the Password Change
Once the password has been changed, it’s good practice to verify that the user can log in with the new credentials. Make sure the user knows about the password change and understands why it matters to keep their new password confidential.
Additional “net user” Parameters for Domain Accounts
When managing domain accounts, the net user command offers extra parameters to fine-tune account settings. For instance, /passwordchg:{yes | no} specifies whether users can change their own password, and /passwordreq:{yes | no} determines whether a user account must have a password. Other parameters like /expires: [ date ] , /fullname:" [ name ] ", and /usercomment:" [ comment ] " let you set expiration dates, full names, and user comments for accounts, respectively. These options give you further control over user accounts in a domain environment.

Addressing Access Denied errors when changing passwords with net user

Understanding the “Access Denied” Error
When employing the net user command to alter passwords on Windows 10 or 11, encountering an “Access Denied ” error indicates a permissions issue. The command prompt must be launched with administrative rights to modify user credentials—lacking admin access results in this error.
net user access denied error
Elevating Command Prompt on Different Windows Versions
To get past the “Access Denied” error, you need to open the Command Prompt with elevated privileges. On Windows 10 and 11, search for CMD in the Start menu, right-click the Command Prompt, and choose “Run as administrator” . On Windows 8, open the “Search” bar by hovering your mouse in the top-right corner and clicking the magnifying glass. On Windows XP, instead of right-clicking, you would open the “Run” application from the Start menu and type cmd.
Windows, cmd, run as administrator
To prevent “Access Denied” errors when using net user to change passwords, confirm that you are working in an administrator account, that you have opened Command Prompt with the necessary privileges, and that you are using the correct syntax. If none of these methods help, carefully consider third-party solutions to regain access to your account.

Tips for Preventing Forgotten Passwords and Securing Your Windows Account

Create a Robust Password
A strong password is critical for account security. One way to create a memorable yet complex password is to use a passphrase with personal significance, such as “Paris4$pringVacation” instead of ” password ” .” This combines several elements, making it hard for attackers to crack but easy for you to remember.
Utilizing Password Managers
Remembering a long list of passwords can be a chore. Password managers act as a vault, storing your credentials securely. For in-browser convenience, consider the Microsoft Edge password manager to auto-fill login forms and sync passwords across devices, so you don’t have to remember every password manually.
Enabling Multi-Factor Authentication
Adding multi-factor authentication (MFA) fortifies security by requesting a second verification method. This could be a code from a text message or authenticator app. MFA is a robust layer of defense, preventing unauthorized access even if your password has been compromised.

Conclusion

Mastering the net user command is essential for Windows users who want to change passwords for local and domain accounts with ease. Knowing how to access the Command Prompt and using tools like Renee PassNow makes resetting forgotten passwords much simpler. This guide covered the command syntax, access methods, error troubleshooting, and tips to avoid forgetting passwords in the future. With this knowledge, you can confidently change your Windows 10 and 11 passwords and keep your account secure. Happy password changing!