Glam Prestige Journal

Bright entertainment trends with youth appeal.

I want to change password using cmd.exe but I can't do this. :( Because the user name is of two words(e.g. Engr. Saud). It works only on One word. How I tell cmd.exe as both words are Single user name?

2

2 Answers

How I tell cmd.exe that both words are a single user name?

the user name is two words (e.g. Engr. Saud)

Use double quotes " around the name.

To remove the password, use the following command:

net user "Engr. Saud" ""

Notes:

  • The net command must be run from a cmd shell that is "Run as Administrator".

Further Reading

You need to enclose the entire user name in quotes, or otherwise escape the space(s) between the words in the user name. Without doing either of these, the shell will treat a space as a parameter separator, not as part of the parameter.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy