AWS EC2 Reset Windows Password (Win 2008)
- Detach root volume from the inaccessible Windows (A) instance to another Windows instance (B) as a non-root volume. Be sure B is running identical version of Windows.
- Log into B
- Mount the secondary volume
- Browse to the secondary volume into \Program Files\Amazon\Ec2ConfigService\Settings\config.xml
- Find the section for "Ec2SetPassword"
- Set the "State" property to "Enabled"
<Ec2ConfigurationSettings> <Plugins> <Plugin> <Name>Ec2SetPassword</Name> <State>Enabled</State> </Plugin>
- Replace the file (accept the UAC warning)
- Update the disk signature
- Open regedit.exe
- Under HKEY_LOCAL_MACHINE, find "Windows Boot Manager"
- This should look like "HKLM\BCD00000000\Objects\{XXXXX-XXX-XXXX-XXXX-XXXXXX}\Elements\"
- Go to sub-path "11000001"
- Select "Element" Value
- Find the byte value found at offset 0x38
- Reverse this set of bytes (6E E9 36 02)
- This is the disk signature that this disk needs to have
- Open Admin Command Prompt
- Run diskpart
- Select the disk of the drive from Windows instance A
select disk 2 - View the disk signature of this drive
uniqueid disk - If this isn't what was found from step 7, then we need to make it so
uniqueid disk id=6EE93602 - This will cause this volume to come offline
- From AWS, detach this volume from B and add it to A as /dev/sda1
- Proceed to retrieve the random password as usual
No comments:
Post a Comment