Rockstable Wiki:

Microsoft

Original Product Key

Open powershell

   1 PS C:\Windows\system32> wmic path softwarelicensingservice get OA3xOriginalProductKey
   2 OA3xOriginalProductKey
   3 AAAAA-BBBBB-CCCCC-DDDDD-EEEEE

Recover Password

Start any Live Distribution like GRML, Fedora or Ubuntu.

Install chntpw

   1 apt install chntpw ntfs-3g

Mount the Windows System Disk

   1 mkdir /mnt/windows
   2 mount /dev/sdb2 /mnt/windows
   3 cd /mnt/windows
   4 ls -la
   5 cd Windows/System32/config/
   6 chntpw -L SAM
   7 chntpw -i SAM
   8 cd /
   9 umount /mnt/windows

Check Disk

Schedule chkdsk on next reboot

Syntax highlighting not supported for 'cmd', see HelpOnParsers.
   1 chkdsk /x /f /r

Mount Dirty NTFS

Can't mount a dirty filesystem.

   1 # mount -o rw /media/data
   2 The disk contains an unclean file system (0, 0).
   3 Metadata kept in Windows cache, refused to mount.
   4 Falling back to read-only mount because the NTFS partition is in an
   5 unsafe state. Please resume and shutdown Windows fully (no hibernation
   6 or fast restarting.)
   7 Could not mount read-write, trying read-only

Cleanup

   1 # mount | grep data     
   2 /dev/sdb1 on /media/data type fuseblk (ro,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096,user)
   3 # umount /media/data
   4 # ntfsfix /dev/sdb1
   5 Mounting volume... The disk contains an unclean file system (0, 0).
   6 Metadata kept in Windows cache, refused to mount.
   7 FAILED
   8 Attempting to correct errors... 
   9 Processing $MFT and $MFTMirr...
  10 Reading $MFT... OK
  11 Reading $MFTMirr... OK
  12 Comparing $MFTMirr to $MFT... OK
  13 Processing of $MFT and $MFTMirr completed successfully.
  14 Setting required flags on partition... OK
  15 Going to empty the journal ($LogFile)... OK
  16 Checking the alternate boot sector... OK
  17 NTFS volume version is 3.1.
  18 NTFS partition /dev/sdb1 was processed successfully.
  19 # mount -o rw /media/data
  20 

Rockstable Wiki: Microsoft (last edited 2020-11-21 14:41:11 by RockStable)