== Repair Windows
=== win7 update error
=== god mode
* create folder ''GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}''
=== Windows Disk Cleanup
* https://ss64.com/nt/cleanmgr.html
* use this one first
* right-click disk > properties > Disk Cleanup > Run as Admin
* clean most junks ''cleanmgr.exe /lowdisk''
* clean all (slow) ''cleanmgr /verylowdisk''
* clean previous windows after update/upgrade ''cleanmgr.exe /autoclean''
=== choco cleaner
choco install choco-cleaner
choco-cleaner
choco uninstall choco-cleaner
#
=== bleachbit
* https://www.bleachbit.org/
* choose only browser cache and vaccum
install
choco install bleachbit.portable
#bleachbit clean
$p="adobe_reader.cache adobe_reader.tmp chromium.cache"
$p+=" firefox.backup firefox.cache firefox.crash_reports firefox.vacuum"
$p+=" flash.cache flash.cookies gimp.tmp google_chrome.cache google_chrome.vacuum"
$p+=" internet_explorer.cache internet_explorer.logs java.cache"
$p+=" microsoft_edge.cache microsoft_edge.vacuum microsoft_office.debug_logs"
$p+=" opera.cache opera.vacuum safari.cache safari.vacuum system.logs system.recycle_bin"
$p+=" system.tmp system.updates windows_defender.backup windows_defender.history"
$p+=" windows_defender.logs windows_defender.quarantine windows_defender.temp"
$p.Split(" ") | % { & bleachbit.exe --clean $_ }
#
deep clean (slow)
bleachbit_console --clean deepscan.backup deepscan.ds_store deepscan.thumbs_db deepscan.tmp
=== CCleaner
* Custom Clean > except cookies
* Tools > Uninstall > Save to text file > Uninstall all craps
* Tools > Startup > Save to text file > Stop all craps
choco install ccleaner.portable
=== wise disk cleaner / registry cleaner / program uninstaller
* https://www.wisecleaner.com/wise-disk-cleaner.html
* https://portableapps.com/apps/utilities/wise-disk-cleaner-portable - clean and defrag
=== O&O Shutup
* https://www.oo-software.com/en/shutup10
* Action > Apply only recommended settings
choco install shutup10
oosu10
== data recovery
* https://portableapps.com/apps/utilities/wise-data-recovery-portable
=== reset file permission
takeown /f /r /d y # take ownership to current user
takeown /f /a /r /d y # take ownership to administrator
icacls C:\drv /grant "%USERDOMAIN%\%USERNAME%":F /t
icacls C:\drv /grant administrators:F