Tag Archives: CommandPrompt

How to Change your Password from the Command Line in Windows

ChangePasswordCommandPrompt

I mainly run into this when I’m using a server core install, but this works on pretty much any version of Windows. The only caveat is that you need to be an administrator on the system.

Of course, you need to run an elevated command prompt as well.

Just enter the following, and you’ll be prompted to enter the password and confirm it.

net user %username% *

You can also run the following command, which specifies the password:

net user %username% %password%

So, if BoDuke wanted to set his password, he would enter:

net user BoDuke *

or to specify a password of “GeneralLee4Life!” he would use:

net user BoDuke GeneralLee4Life!

How to open an Elevated Command Prompt in Windows 7

Click her for the same directions in Windows 8 or 8.1

An Administrative command prompt allows you to run programs and commands with full administrative rights.

Lots of programs and command line options just don’t work with a normal command prompt. Of course, you don’t always get a good error message, sometimes they just don’t work. Microsoft introduced User Account Control in Windows Vista, and not everything has been updated just yet, or maybe never will be.

It’s easy to do. Just click on the Windows Orb (Start Button).

image

Then type “cmd”.  In the search results pane, you’ll see a little icon for the command prompt appear, with the words “cmd” next to it.

image

Right click it. In the menu that appears, click on “Run as Administrator”

image

You’ll receive a prompt from User Access Control. Click Yes.

image

After that, the command prompt will appear. You can always tell that a command prompt is elevated if it has the words “Administrator” in the title (Pictured Below).

image

How to Open an Elevated Command Prompt in Windows 8 or 8.1

image

Click here for the same instructions for Windows 7

For some tasks, you have to be in an elevated command prompt, if you’re lucky you get an error like “Access denied”, but sometimes whatever you are trying to do just doesn’t work.

It’s pretty easy to get an administrative command prompt, just click on the Windows Logo:

image

Type “cmd”, and the search results will open on the left hand screen, with “Command Prompt” listed. Right click on it. A menu pops up, choose “Run as Administrator”.

image

You’ll be prompted with the User Account Control confirmation. Click Yes.

image

Finally, the command prompt will open. You can always tell you’re in an administrative command prompt by the Title bar. If it says “Administrator” then that’s it.

image