Change pc password with command prompt
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
windows-10 prompt
add a comment |
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
windows-10 prompt
add a comment |
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
windows-10 prompt
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
windows-10 prompt
windows-10 prompt
asked May 25 '17 at 18:43
Riccardo_Fan_98Riccardo_Fan_98
3438
3438
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
add a comment |
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.
Error
System error 5 has occurred.
Access is denied.

3. Alternatively
You can press Ctrl+Alt+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.
Further Resources
- Net User
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
add a comment |
net user <your username> *
You will be prompted to enter your new password.
Replace <your username> with your logon name (and don't type the <> characters).
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1212911%2fchange-pc-password-with-command-prompt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
edited May 25 '17 at 20:44
answered May 25 '17 at 18:53
LPChipLPChip
35.5k55185
35.5k55185
add a comment |
add a comment |
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.
Error
System error 5 has occurred.
Access is denied.

3. Alternatively
You can press Ctrl+Alt+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.
Further Resources
- Net User
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
add a comment |
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.
Error
System error 5 has occurred.
Access is denied.

3. Alternatively
You can press Ctrl+Alt+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.
Further Resources
- Net User
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
add a comment |
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.
Error
System error 5 has occurred.
Access is denied.

3. Alternatively
You can press Ctrl+Alt+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.
Further Resources
- Net User
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.
Error
System error 5 has occurred.
Access is denied.

3. Alternatively
You can press Ctrl+Alt+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.
Further Resources
- Net User
edited Dec 17 '18 at 15:47
answered May 25 '17 at 18:53
Pimp Juice ITPimp Juice IT
23.7k113971
23.7k113971
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
add a comment |
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
Change Domain Password with net use does not work with own password and if not domain admin!
– Falco Alexander
Dec 17 '18 at 10:50
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
@FalcoAlexander FYI... I've updated to indicate more clearly that issue you mentioned and reported on this post. Let me know if this pacifies your concern and expresses more clearly of this issue you reported.
– Pimp Juice IT
Dec 17 '18 at 15:48
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
afaik "You will need AD level permission to change your own password apparently via this method" is not correct or enough. the only method that worked for me as non AD Admin by script is the Powershell command from the RBAC tools, not installed by default.
– Falco Alexander
Dec 18 '18 at 8:45
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
Thus the #3 alternative which I provided for AD non-domain admin accounts. Regular non-admin users in an AD environment typically won't change their password via a script & will more likely use a GUI method. At least for the ten thousands of end-user I've supported over my years in AD environments, they change at login as prompted upon password expiring or press Alt+Ctrl+Del or Alt+Ctrl+End via RDP or terminal services. I answered this question long ago right at the same time the other answers were provided so I just added the domain method as additional but yes, I've always been domain admin.
– Pimp Juice IT
Dec 18 '18 at 12:46
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
in my case I searched for a method to chance my AD password, and UI was not an option because I could not type the generated password with a german keyboard layout :)
– Falco Alexander
Dec 18 '18 at 16:01
add a comment |
net user <your username> *
You will be prompted to enter your new password.
Replace <your username> with your logon name (and don't type the <> characters).
add a comment |
net user <your username> *
You will be prompted to enter your new password.
Replace <your username> with your logon name (and don't type the <> characters).
add a comment |
net user <your username> *
You will be prompted to enter your new password.
Replace <your username> with your logon name (and don't type the <> characters).
net user <your username> *
You will be prompted to enter your new password.
Replace <your username> with your logon name (and don't type the <> characters).
answered May 25 '17 at 18:53
TonnyTonny
17k33353
17k33353
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1212911%2fchange-pc-password-with-command-prompt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
