Thursday, July 4, 2019

Reset Local Administrator Password (Windows 10)


If you've run into a situation where you can't log into a Windows 10 computer because your domain credentials no longer work as the computer object was deleted from Active Directory and you don't know the local Administrator account.  You can reset the local Administrator account using the steps below.
  • Hold down shift and click on the reboot button on the Windows 10 login screen.  It will reboot into recovery mode.
  • Go into the Command Prompt from recovery mode.
  • Enter in the Bitlocker Key if your disk is Bitlocked.
  • Overwrite utilman.exe with cmd.exe.
    • move c:\windows\system32\utilman.exe c:\windows\system32\utilman.exe.bak
    • copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe
  • Reboot the computer using the following command.
    • wpeutil reboot
  • On the login prompt after rebooting, click on the Utility Manager icon.  This will open up the command prompt.
  • Change the password of the Adminstrator account by using the following command.
    • net user administrator <new password>
  • Exit the Command Prompt and log in with the new password.

Test your hard disk drive performance in Linux

Below are some usage of the hdparm tool in Linux.  Replace sda with your device name.
  • Get Hard Disk information
    • sudo hdparm -I /dev/sda
  • Read Performance Test
    • sudo hdparm -t /dev/sda
  • Enable Read-Ahead
    • sudo hdparm -A 1 /dev/sda
  • Turn on DMA
    • sudo hdparm -d1 /dev/sda
  • Retain hdparm settings after reset
    • sudo hdparm -K 1 /dev/sda