Welcome , today I'm working with the command prompt on Windows 10 , I like to know if it is possible to change my pc's password with this and how can I do it. Thank you
Yes you can. You need administrative privileges and you need to know your username.
From the command prompt, enter the following command, and replace
<username> with your actual username:
net user <username> *
Then enter the new password.
Do note, it will not ask to reconfirm your password, so any typo can mean the end of logging in.
1. Change Local Password from Command Line
net user <username> <NewPassword>
2. Change Domain Password from Command Line
net user <username> <NewPassword> /Domain
Note: Be sure to run this from an elevated command prompt.
Important: You will need AD level permission to change your own password apparently via this method so this command may more easily be usable by domain admins; otherwise, further AD permissions.
System error 5 has occurred. Access is denied.
You can press
Del and select Change Password for a GUI method to change your own password on a domain PC when you're not a domain admin.
net user <your username> *
You will be prompted to enter your new password.
<your username> with your logon name (and don't type the <> characters).