====== Windows Knowledge Base ====== ===== System Repair ===== //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''\\ ===== Power ===== ==== Hibernation ==== **Hibernation off:** ''powercfg.exe /hibernate off''\\ **Hibernation on:** ''powercfg.exe /hibernate on''\\ ==== Shutdown ==== **Shutdown immediately:** ''shutdown -t 0''\\ **Reboot system immediately:** ''shutdown -r -t 0''\\ ===== Networking ===== ==== Mapped Drives ==== **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''\\ ===== Security ===== ==== Windows Updates ==== **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''\\ ===== User Accounts ===== **Create user:** ''net user /add //USERNAME// //PASSWORD//''\\ **Enable Administrator:** ''net user administrator /active:yes''\\