• Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
  • Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
home/Knowledge Base/Dedicated Servers/Windows Guides/Reset Windows Server Administrator Password
Popular Search:Dedicated Server, CentOS, Web Hosting

Reset Windows Server Administrator Password

330 views 0 December 6, 2019 aklwebhost

There are times when you have forgotten your local administrator password on Windows and need to have it reset. It is easily possible to reset this password if you had created a Password Reset Disk beforehand, but that’s not usually the case. In this article, we’re going through a step by step guide on how to reset your password on Windows Server.

This guide is applicable for all versions of Windows including:

  • Windows Server 2008
  • Windows Server 2008 R2
  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows Server 2016

Introduction

We will be using a Finnix rescue CD to recover the administrator password. Finnix is a fully self-contained Linux LiveCD that is based on Debian. It is very useful for repairing hard drives, boot records, and recovering systems.

Reset administrator password

Obtain and upload Finnix

First, we need to upload a copy of Finnix. AKLWEB HOST allows you to upload an ISO by providing its URL. You may get the latest version of Finnix from this link. Copy the URL to the Finnix ISO that you want to use.

Now we need to upload the ISO. Navigate to the management panel of your instance and paste the URL in the upload field.

finnix_1.png

After a few moments, you will see the image labelled as “available”.

finnix_2.png

Attach and restart your instance

Get back to your management panel, select the newly uploaded ISO, then click the “Attach ISO and Reboot” button.

finnix_3.png

Then, connect to your instance console by clicking the “View Console” button. It may take a few moments for you to be able to view your instance console as AKLWEB HOST transfers uploaded ISO to your instance location.

Boot with Finnix

Once your machine boots, you will see the Finnix boot menu. The option “Boot Finnix (64-bit)” will be selected. Press “enter” to boot 64-bit Finnix.

finnix_4.png

After a moment, Finnix will provide you with a terminal where you can input commands.

finnix_5.png

Mount your Windows drive

Now we need to mount the partition that has your Windows Server installation on it. Use the fdisk -l command to determine the partition device.

fdisk -l

An easy way to determine the partition device is to compare the size of the partition device to the size of your AKLWEB HOST VM. For example, I have a 45GB Windows Server 2012 plan. The output of fdisk -l shows me that /dev/vda2 has a size of 44.9G. Therefore /dev/vda2 is the partition that I’m interested in; note that yours may be named differently.

finnix_6.png

Mount the partition.

mkdir /mnt/win
mount /dev/vda2 /mnt/win

You will likely get the error shown below saying “The disk contains an unclean file system (0, 0).”. Don’t worry, that’s normal.

finnix_7.png

We can run the ntfsfix command to resolve this error. Replace /dev/vda2 with your partition.

ntfsfix /dev/vda2

Now you can mount the partition again.

mount /dev/vda2 /mnt/win

finnix_8.png

Clear the password

Navigate to the C:\Windows\System32\config folder.

cd /mnt/win/Windows/System32/config/

Edit the Administrator account with chntpw.

chntpw SAM

finnix_9.png

Here you may clear the administrator password and also unlock the account. The account becomes locked when you try to login too many times before attempting to reset the password. Follow these steps.

  • Type 1 – This clears the Administrator password.
  • Type 2 – This unlocks the Administrator account.
  • Type q – This quits chntpw.
  • Type y – Confirms “yes” for “Write hive files?”.

Unmount the partition.

cd ~
umount /mnt/win

The administrator password has been reset.

Booting back to Windows

You should now remove the ISO because as long as it is attached, your server will show the Finnix boot menu when you restart it. Click “Remove ISO” on the AKLWEB HOST control panel.

finnix_10.png

AKLWEB HOST will reboot your VPS, and you can login to Windows as Administrator with no password.

Remember to set a password after logging in. On newer versions of Windows Server, you can set your password on the Ctrl+Alt+Del menu.

Tags:Reset Windows Server Administrator Password

Was this helpful?

Yes  No
Related Articles
  • How To Setup Apache on Windows Server
  • Build a Mail Server with hMailServer on Windows
  • Setting up IIS on Windows Server
  • Getting Started with Active Directory
  • Setup Dynamic DNS For Windows Remote Desktop
  • Windows Custom ISO with VirtIO Drivers
Leave A Comment Cancel reply

Windows Guides
  • Reset Windows Server Administrator Password
  • How To Setup Apache on Windows Server
  • Build a Mail Server with hMailServer on Windows
  • Setting up IIS on Windows Server
  • Getting Started with Active Directory
  • Setup Dynamic DNS For Windows Remote Desktop
View All 15  
Popular Articles
  • Using StrongSwan for IPSec VPN on CentOS 7
  • Disabling SSDP (Linux / Windows)
  • Can I pay by Western Union?
  • Can a Coupon Code Discount Be Carried Forward While I Upgrade My VPS Account
  • Can I pay multiple due invoices using a single transaction?
KB Categories
  • Billing
  • Cloud Hosting
  • CMS Hosting
  • cPanel/WHM Control Panel Guide
  • Dedicated Servers
    • AMD Opteron 6272
    • Arch
    • Backup Storage
    • Bandwidth
    • Basic Security
    • BSD
    • CentOS
    • Containers
    • CoreOS
    • DDoS Protection
    • Debian
    • Dedicated Server Control Panel
    • Intel Core i5 3550
    • Intel Core i5 4570
    • Intel Core i7 3770
    • Intel Core i7 4770
    • Intel Xeon E3 1230 V3
    • Intel Xeon E3 1245 V2
    • IP Space
    • Linux Guides
    • Minecraft
    • Networking
    • Server Apps
    • Server Troubleshooting
    • Ubuntu
    • Windows Guides
    • Windows Server 2008
    • Windows Server 2012
  • Domain Names
  • Email Support Documentation
    • Setup IMAP or POP
    • User Features – How To
    • Webmail – How To
  • FTP (File Transfer Protocol
    • CuteFTP Guide
    • FileZilla Guide
  • Game Servers
  • MySQL and MariaDB
  • Node.js
  • Plesk Web Hosting Guide
  • VPS Server
  • Web Servers

  Music Bot using Teamspeak on Windows

Setting up a Dota 2 Server on Windows  

  • Privacy Policy
  • Terms of Use
  • © 2022 AKLWEB HOST LLC, All Rights Reserved.

Popular Search:Dedicated Server, CentOS, Web Hosting