Forgot the Administrator Password? Reset It on a Dedicated Server

If you no longer know the password of Administrator, you can remove it with the rescue system and then set a new one in the IPMI console. Your files and programs stay as they are; reinstalling is not needed. We tested every step on our test server with Windows Server 2025; it took about 25 minutes, most of it waiting for restarts.

You need the Rescue tab and the console of your server (noVNC or IPMI). Remote Desktop does not help here: Windows accepts an account without a password only on the server's own screen, and the console shows you that screen.


1. Start the Rescue System

Start the rescue system with the GRML Linux Rescue Image and connect to it with SSH as root, with the rescue password from the Credentials tab: How to Use Rescue Mode. The server restarts into the rescue system; SSH answers after about 3.5 minutes.

2. Remove the Password

Type these commands and press Enter after each line. First find the Windows partition:

lsblk -o NAME,SIZE,FSTYPE,LABEL

It is the large ntfs partition with the label Windows, for example sda3. The name depends on the disks of your server, for example nvme0n1p3 on NVMe disks. Use your partition name in the next commands.

ntfsfix -d /dev/sda3
mount /dev/sda3 /mnt

ntfsfix is needed because the server was switched off without shutting Windows down. Without it, mount answers Metadata kept in Windows cache, refused to mount and opens the disk read-only, so the password cannot be changed. Windows may check the disk at the next start.

cd /mnt/Windows/System32/config
chntpw -u Administrator SAM

chntpw shows the account and a menu. Type 1, Clear (blank) user password, and press Enter. chntpw answers Password cleared!. Type q and Enter, then y and Enter at Write hive files? (y/n). The answer <SAM> - OK means the change is saved.

Unmount the disk and restart the server into Windows. Windows is ready again after about 6 minutes.

cd /
umount /mnt
reboot

3. Sign In at the Console

Open the screen of your server from the Client Area: noVNC Remote Management or How to Connect to Dedicated Server IPMI Remote Management. The console looks different on each server brand, for example HP iLO, Dell iDRAC or Supermicro, but the steps in Windows are the same.

Windows shows its lock screen. Send Ctrl+Alt+Del with the console itself: look for a button or menu item named Ctrl+Alt+Del in the console toolbar, often under Keyboard or Macro. The keys of your own keyboard would be caught by your computer.

Administrator now has no password field: click Sign in (1). Windows asks why it was shut down: choose a reason, type a short comment and click OK.

Windows sign-in in the server console: Administrator without a password

4. Set a New Password

Right-click Start and choose Run. Type cmd (1) and click OK (2). The window says that the task runs with administrative privileges.

Run window with cmd and administrative privileges

Wait until the black window shows C:\Users\Administrator>, then type this command and press Enter (1):

net user Administrator *

Type the new password, press Enter, type it again and press Enter (2). Nothing appears while you type. Windows answers The command completed successfully. (3). Many consoles use the US keyboard layout; if the password with special characters does not work later, set one without them first and change it in Remote Desktop.

Command Prompt: net user Administrator, the two password prompts and The command completed successfully

ℹ Why not Change a password?

Change a password on the Ctrl+Alt+Del screen answers Access is denied with an empty old password. net user sets the password without the old one.

⚠ Do not stay without a password

Set the new password before you close the console, and write it down: the Credentials tab keeps showing the password from the installation. Then lock the screen: send Ctrl+Alt+Del from the console again and choose Lock.

Connect with Remote Desktop and the new password: How to Connect to Windows Server With Remote Desktop.

The steps work with Windows Server 2025, the GRML rescue image 2025.07 and chntpw 1.00.


Related Guides

View all Windows guides

Was this answer helpful? 24 Users Found This Useful (37 Votes)