Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reset Windows 2012R2 local administrator password.

Reset Windows 2012R2 local administrator password

  • Boot from Microsoft Windows Server 2012R2 DVD/ISO.
  • From the Windows Setup menu, click "Next".
  • Select "Repair your computer".
  • Click on "Troubleshoot".
  • Under Advanced options, click "Command Prompt".

At the command prompt, run the following commands:

c:
cd Windows\System32
ren Utilman.exe Utilman.exe.old
copy cmd.exe Utilman.exe
  • Close the command prompt, remove DVD/ISO and then reboot the system.
  • The server should now boot and present the logon screen.
  • Press Windows Key + U.

At the prompt you can change the password, by typing the following command:

net user administrator Password123

This will set the password for the Administrator user to be Password123 (case sensitive).

Now repeat the DVD/ISO boot steps and open command prompt above and run the following:

c:
cd Windows\System32
del Utilman.exe
ren Utilman.exe.old Utilman.exe

Done!

@noname317

This comment has been minimized.

Copy link

@noname317 noname317 commented May 23, 2017

i tried it but i got an error while executing command..
ren Utilman.exe Utilman.exe.old
Error:- specific file not found

@Evadelparaiso

This comment has been minimized.

Copy link

@Evadelparaiso Evadelparaiso commented Jun 13, 2017

Do you need change maybe D or E or any other letter, write dir and check where you Windows are.

@Arsalan09

This comment has been minimized.

Copy link

@Arsalan09 Arsalan09 commented Jan 16, 2018

When i follow this procedure, system doesn't open command prompt, it shows first put admin password..

@jgantz022

This comment has been minimized.

Copy link

@jgantz022 jgantz022 commented Jul 5, 2018

hi i find out that my windows drive is in X: i use
x: cd windos\system32
x:\windows\system32> ren Utilman.exe Utilman.exe.back

then i get this

the system cannot find the file specification

what should i do?

thanks for the help

@packeteer

This comment has been minimized.

Copy link

@packeteer packeteer commented Oct 23, 2018

any tips for using this method via RDP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment