Forgot or lost administrator password on Windows

Forgot or lost administrator password on Windows

Some times I am asked to help with member servers where nobody any longer can remember the local administrator password.

In these situations I use an old trick.

Boot the system with your Windows CD, in this example we are working with Windows 2008 R2 and press SHIFT + F10.

image

Create a backup of the file C:WindowsSystem32sethc.exe

image

Now overwrite sethc.exe with cmd.exe

image

Exit the command prompt and restart the computer.

image

At the login screen press Shift quickly 5 times (try again if its not working the first time).

This will open Sticky Keys but also the command prompt.

image

Change the local administrator password with the command:

net user administrator NewPassword

Exit the command prompt.

image

Login to the system with the administrator account and your new password.

Finally remember to copy the backup of sethc.exe back again.

image

 

Instead of using SHIT + F10 at the boot screen this is an alternative way to the command prompt.

At the first screen when booting from CD select Next.

 image

Select Repair your computer in the bottom of the screen.

image

Select your OS and click Next.

image

Select Command Prompt.

image

Now copy sethc.exe and backup as explained earlier, after exiting the command prompt select Restart.

image

The rest is the same as earlier.

+ posts

Table of Contents

Share this post
Search blog posts
Search
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.

Modern Workplace consultant and a Microsoft MVP in Windows and Devices.

Infrastructure architect with focus on Modern Workplace and Microsoft 365 security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Cloud & security specialist with focus on Microsoft 365.

Cloud & Security Specialist, with a passion for all things Cybersecurity

Cloud and infrastructure security specialist with background in networking.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

Modern workplace and infrastructure architect with a focus on Microsoft 365 and security.

follow us in feedly
Categories

Follow on SoMe