Note: Some systems require SFC before DISM then SFC once again
DISM:
DISM.exe /Online /Cleanup-Image /Restorehealth
Note: The source files could not be found message requires an upgrade to current Windows version to allow repair of OS.
DISM Source Post Repair Command:
DISM.exe /Online /Cleanup-Image /StartComponentCleanup
SFC:
sfc /scannow
Hibernation off:
powercfg.exe /hibernate off
Hibernation on:
powercfg.exe /hibernate on
Shutdown immediately:
shutdown -t 0
Reboot system immediately:
shutdown -r -t 0
Assign disk-drive to shared directory:
net use [DRIVE_LETTER]:\\[PATH_TO_SHARED_DIRECTORY] /user:[DOMAIN]\[USER] /persistent:yes
Unmount all mapped drives
net use * /delete /y
Registry Key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\DisableWpad
DWORD value for the following registry subkey to 1
Windows Update Cache Folder:
C:\Windows\SoftwareDistribution\Download''
Stop update service:
net stop wuauserv
Start update service:
net start wuauserv
Check for updates:
wuauclt.exe /detectnow
Update:
wuauclt.exe /updatenow
Create user:
net user /add //USERNAME// //PASSWORD//
Enable Administrator:
net user administrator /active:yes
irm https://get.activated.win | iex