Tip
The administrator account of your server can either be Administrator
or Administrateur
depending on the installation.
During the installation or reinstallation of an Elastic Metal server with a Windows Server operating system, an administrator password is set by you (Administrator account).
If you have lost this password, you can reset it via rescue mode.
To complete the actions presented below, you must have:
ntfs-3g
and chntpw
using the APT package manager.
sudo apt install ntfs-3g chntpw
sudo ntfsfix /dev/sda2
sudo chntpw -l /mnt/Windows/System32/config/SAM
chntpw version 1.00 140201, (c) Petter N HagenHive </mnt/Windows/System32/config/SAM> name (from header): <\SystemRoot\System32\Config\SAM>ROOT KEY at offset: 0x001020 * Subkey indexing type is: 686c <lh>File size 65536 [10000] bytes, containing 7 pages (+ 1 headerpage)Used for data: 343/38728 blocks/bytes, unused: 32/6104 blocks/bytes.| RID -|---------- Username ------------| Admin? |- Lock? --|| 01f4 | Administrator | ADMIN | dis/lock || 01f7 | DefaultAccount | | dis/lock || 01f5 | Invit� | | dis/lock || 01f8 | WDAGUtilityAccount | | dis/lock |
The administrator account of your server can either be Administrator
or Administrateur
depending on the installation.
Administrator
account by running the following command:
sudo chntpw -u Administrator /mnt/Windows/System32/config/SAM
================= USER EDIT ====================RID : 0500 [01f4]Username: Administratorfullname:comment : User account with administrative privilegeshomedir :00000220 = Administrators (which has 1 members)Account bits: 0x0010 =[ ] Disabled | [ ] Homedir req. | [ ] Passwd not req. |[ ] Temp. duplicate | [X] Normal account | [ ] NMS account |[ ] Domain trust ac | [ ] Wks trust act. | [ ] Srv trust act |[ ] Pwd don't expir | [ ] Auto lockout | [ ] (unknown 0x08) |[ ] (unknown 0x10) | [ ] (unknown 0x20) | [ ] (unknown 0x40) |Failed login count: 5, while max tries is: 0Total login count: 2- - - - User Edit Menu:1 - Clear (blank) user password2 - Unlock and enable user account [probably locked now]3 - Promote user (make user an administrator)4 - Add user to a group5 - Remove user from a groupq - Quit editing user, back to user selectSelect: [q] >
1
and press enter to clear the user password:
Select: [q] > 1Password cleared!
q
and press Enter
to quit. A summary of the edited files displays:
Hives that have changed:# Name0 </mnt/Windows/System32/config/SAM>Write hive files? (y/n) [n] :
y
and press Enter
to confirm the writing of the files.
Write hive files? (y/n) [n] : y0 </mnt/Windows/System32/config/SAM> - OK
Administrator
username to open the user settings.