• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Techinline Blog

Remote Support Software Explained

SetMe
Remote Support Software That Always Works
Sign up
Techinline Blog
  • Product
  • Features
  • Pricing
  • How It Works

How to Change Windows Password Using Command Line or PowerShell

December 20, 2018 by Dan Kukarsky

Windows makes it simple for any user to change their password from the standard settings menu. But what if they forget it, or even get stuck on the login screen with their local administrator account disabled?

If this is the case, you can connect to their machine using a remote desktop tool such as SetMe, and assign a new Windows password via Command Line or PowerShell.

Here’s how you can do that.

Change Windows password for a local user

  1. Run Command Prompt as an administrator, or start Windows 10 in safe mode with Command Prompt at the login screen.
  2. Type net user USERNAME NEWPASS where you need to replace USERNAME and NEWPASS with the actual username and a new password for this user.
  3. If the actual username consists of more than two words, place it inside quotation marks.
  4. Hit Enter.

For extra security, you may want to use the following command: net user USERNAME *. Windows will then prompt you to enter the password twice. This way nobody around you will be able to see the password on your screen.


Looking for an easy solution to fix Windows issues remotely? SetMe is a remote support powerhouse that allows you to securely connect to any remote PC in just 3 easy steps.

See how it works

Change Windows password for a domain user

  1. Run Command Prompt as an administrator, or start Windows 10 in safe mode with Command Prompt at the login screen.
  2. Type net user /domain USERNAME NEWPASS. Replace USERNAME and NEWPASS with the actual username and a new password for this user.
  3. If the actual username consists of more than two words, place it inside quotation marks.
  4. Hit Enter.

Change Windows password for a domain user with PowerShell

  1. Run PowerShell as an administrator.
  2. Use the Set-ADAccountPassword cmdlet to change the user’s password:
    Set-ADAccountPassword -Identity $user -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "$newPass" -Force)
    Replace $user and $newPass with the actual username and a new password.
  3. Hit Enter.

Did you find this article helpful? See more Windows tips & tricks on our blog and follow us on Facebook, Twitter or LinkedIn to get all the latest posts and updates as they happen.

Check out SetMe, our brand new remote desktop solution that makes connecting to remote computers easier than ever before, and be sure to sign up for a fully-featured 30-day free trial:

Learn More About SetMe

Related Posts

  • How to Disable Windows 10 Password Prompt on Wakeup
  • How to Change the Language of Welcome Screen in Windows 10
  • Windows 10 Creators Update: A Tiny Change That May Affect Some Applications

Filed Under: Windows Tips & Tricks Tagged With: Password, Windows 10

Primary Sidebar

Most Popular

Meet SetMe Solo: Ideal Pricing Plan for Individual & Small Businesses

New SetMe Features: In-Session Unattended Setup, Screen Blanking for Mac & More

SetMe's Unattended Access Is Here

New SetMe Feature: Disable Remote Input

Chrome Remote Desktop Review: The Pros & Cons

Best Remote Desktop Software for Mac in 2024

Subscribe to Newsletter

loader

Follow Us

Recent Posts

  • How to Restart a Remote Computer (the Easy Way with SetMe) May 2, 2025
  • Best Remote Desktop Software for Windows 11 (2025 Edition) April 30, 2025
  • How to Check if a Windows Server or PC Is Domain-Joined (All Methods) April 23, 2025
  • Remotely Access Headless Computers with SetMe April 18, 2025
  • How to Run PowerShell as Administrator (Windows 10 & 11) April 10, 2025
  • SetMe Recognized with Multiple Accolades from Capterra, Software Advice and GetApp in 2025 March 27, 2025

Footer

Product

  • Features
  • Pricing
  • How It Works
  • Security

Resources

  • Product Roadmap
  • Help Center

Try It Free

Do you enjoy reading our posts? You might also like our remote support app. Give it a try, it's free for 15 days:

Try SetMe Free

© 2025 · Techinline Ltd. · Built on the Genesis Framework