•
1 min read
•
6 views
Resetting a Forgotten Windows Administrator Password
Using the LinWin in-guest real-time agent task or offline KVM SAM hive rescue utility.
### Method 1: Real-Time Password Task (Online)
If the server is booted into Windows and has internet connectivity, enter a new password in the **Deployments → Actions → Change Password** modal. The LinWin background agent will apply it within 60 seconds without rebooting.
### Method 2: Offline SAM Hive Rescue Script (Offline)
If the server is locked or unbootable:
1. Reboot your VPS into your provider's Linux Rescue Mode.
2. In LinWin, click **Offline Rescue Script** on your deployment card.
3. Run the one-liner in rescue mode. The script mounts your NTFS partition, uses `chntpw` to clear the SAM registry hive lock, and writes your new password.
Was this article helpful to you?