| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:10 [2026/02/10 21:56] – [Reset Icon Cache] Sean Rhone | windows:10 [2026/02/28 03:36] (current) – [Update Office] Sean Rhone |
|---|
| |
| * Microsoft Windows 10 IoT Enterprise LTSC | * Microsoft Windows 10 IoT Enterprise LTSC |
| * Version 21H2 (OS Build 19044.6812) | * Version 21H2 (OS Build 19044.6937) |
| |
| ====== Resources ====== | ====== Resources ====== |
| |
| ==== Maintenance ==== | ==== Maintenance ==== |
| |
| "%SystemRoot%\System32\cleanmgr.exe" /sageset:9999 | |
| |
| "notepad.exe" "%UserProfile%\Desktop\Maintenance.bat" | "notepad.exe" "%UserProfile%\Desktop\Maintenance.bat" |
| TITLE Maintenance | TITLE Maintenance |
| CD "%Temp%" | CD "%Temp%" |
| | |
| | :: Disk Cleanup Set-up |
| | "%SystemRoot%\System32\cleanmgr.exe" /sageset:9999 |
| |
| :: System File Check, Cleanup, and Repair | :: System File Check, Cleanup, and Repair |
| "%SystemRoot%\System32\sfc.exe" /scannow | "%SystemRoot%\System32\sfc.exe" /scannow |
| |
| :: Classic Disk Cleanup | :: Disk Cleanup |
| "%SystemRoot%\System32\cleanmgr.exe" /sagerun:9999 | "%SystemRoot%\System32\cleanmgr.exe" /sagerun:9999 |
| |
| |
| PAUSE | PAUSE |
| | "%SystemRoot%\System32\taskkill.exe" /F /IM "explorer.exe" |
| | "%SystemRoot%\System32\timeout.exe" /T "2" /NOBREAK |
| | |
| | :: Icon Cache |
| | DEL /F /Q "%LocalAppData%\Microsoft\Windows\Explorer\"*".db" |
| | DEL /F /Q "%UserProfile%\AppData\Local\IconCache.db" |
| | |
| | :: Shader Cache |
| | DEL /F /Q "%LocalAppData%\D3DSCache\*" |
| | DEL /F /Q "%UserProfile%\AppData\LocalLow\Intel\ShaderCache\*" |
| | |
| | :: Temp Dirs |
| | DEL /F /Q "%LocalAppData%\Temp\*" |
| | DEL /F /Q "%SystemRoot%\Temp\*" |
| | |
| | TIMEOUT /T "2" /NOBREAK |
| | START explorer.exe |
| |
| :: Defrag/Trim | :: Defrag/Trim |
| | PAUSE |
| "%SystemRoot%\System32\Defrag.exe" /AllVolumes /Defrag /TierOptimize /SlabConsolidate /Retrim /Optimize /PrintProgress /Verbose /NormalPriority | "%SystemRoot%\System32\Defrag.exe" /AllVolumes /Defrag /TierOptimize /SlabConsolidate /Retrim /Optimize /PrintProgress /Verbose /NormalPriority |
| |
| |
| :: End</code> | :: End</code> |
| |
| === Test === | |
| |
| * [[https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc788042(v=ws.11)?redirectedfrom=MSDN|URL]] | |
| |
| fsutil usn deleteJournal /D C: | |
| |
| ===== Downloads ===== | ===== Downloads ===== |
| |
| ==== Reset Icon Cache ==== | |
| |
| "notepad.exe" "%UserProfile%\Downloads\Reset Icon Cache.bat" | |
| |
| <code> | |
| @echo off | |
| |
| TITLE Reset Icon Cache | |
| CD "%Temp%" | |
| |
| "%SystemRoot%\System32\taskkill.exe" /F /IM "explorer.exe" | |
| "%SystemRoot%\System32\timeout.exe" /T "2" /NOBREAK | |
| |
| DEL /F /Q "%LocalAppData%\Microsoft\Windows\Explorer\"*".db" | |
| DEL /F /Q "%UserProfile%\AppData\Local\IconCache.db" | |
| |
| "%SystemRoot%\System32\timeout.exe" /T "2" /NOBREAK | |
| START "%SystemRoot%\explorer.exe" | |
| |
| :: End</code> | |
| |
| "%UserProfile%\Downloads\Reset Icon Cache.bat" | |
| |
| ==== Remove Intel Microcode ==== | ==== Remove Intel Microcode ==== |
| |
| "notepad.exe" "%UserProfile%\Downloads\Remove Intel Microcode.bat" | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\Remove Intel Microcode.bat" |
| |
| <code> | <code> |
| @echo off | @echo off |
| |
| TITLE Remove Intel Microcode | |
| CD "%Temp%" | CD "%Temp%" |
| |
| TAKEOWN /F "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" | "%SystemRoot%\System32\takeown.exe /F "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" |
| ICACLS "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" /grant "Administrators:F" | "%SystemRoot%\System32\icacls.exe" "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" /grant "Administrators:F" |
| DEL /Q "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" | DEL /Q "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" |
| |
| PAUSE | |
| |
| :: End</code> | :: End</code> |
| ==== RDP ==== | ==== RDP ==== |
| |
| "notepad.exe" "%UserProfile%\Documents\Alira (LAN).rdp" | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Documents\Alira (LAN).rdp" |
| |
| <code> | <code> |
| === Start Menu === | === Start Menu === |
| |
| "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Accessories" | "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Accessories" |
| |
| "%UserProfile%\Documents\Alira (LAN).rdp" | "%UserProfile%\Documents\Alira (LAN).rdp" |
| |
| "bcdedit.exe" /set "nx" "AlwaysOff" | "bcdedit.exe" /set "nx" "AlwaysOff" |
| | |
| | "bcdedit.exe" /debug "Off" |
| | |
| | "bcdedit.exe" /bootdebug "Off" |
| | |
| | "bcdedit.exe" /ems "Off" |
| | |
| | "bcdedit.exe" /event "Off" |
| | |
| | "bcdedit.exe" /set "hypervisorlaunchtype" "Off" |
| | |
| | "bcdedit.exe" /set "hypervisordebug" "Off" |
| | |
| | "bcdedit.exe" /set "vsmlaunchtype" Off" |
| | |
| | "bcdedit.exe" /set "pae" "ForceDisable" |
| |
| ===== Microsoft Edge ===== | ===== Microsoft Edge ===== |
| * [[https://www.pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Force_games_to_use_a_custom_refresh_rate|https://www.pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Force_games_to_use_a_custom_refresh_rate]] | * [[https://www.pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Force_games_to_use_a_custom_refresh_rate|https://www.pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Force_games_to_use_a_custom_refresh_rate]] |
| |
| REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "60" /reg:64 /f | REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "152" /reg:64 /f |
| |
| REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "60" /reg:32 /f | REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "152" /reg:32 /f |
| |
| ====== Other ====== | ====== Other ====== |
| ===== Microsoft Store ===== | ===== Microsoft Store ===== |
| |
| "WSReset.exe" -i | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\Install Microsoft Store.bat" |
| |
| <code> | <code> |
| "WSReset.exe" -i | @echo off |
| TIMEOUT /T "20" /NOBREAK | |
| "WSReset.exe" -i | TITLE Install Microsoft Store |
| | CD "%Temp%" |
| | |
| | "%SystemRoot%\System32\WSReset.exe" -i |
| | "%SystemRoot%\System32\timeout.exe" /T "20" /NOBREAK |
| | |
| | "%SystemRoot%\System32\WSReset.exe" -i |
| EXIT /B | EXIT /B |
| |
| :: End</code> | :: End</code> |
| | |
| | "%UserProfile%\Downloads\Install Microsoft Store.bat" |
| |
| ===== WinSAT ===== | ===== WinSAT ===== |
| |
| "WinSAT.exe" forgethistory | "%SystemRoot%\System32\WinSAT.exe" "formal" -restart "clean" -v |
| |
| "WinSAT.exe" "formal" -restart "clean" | "%SystemRoot%\System32\WinSAT.exe" forgethistory |
| |
| "WinSAT.exe" query | "%SystemRoot%\System32\WinSAT.exe" query |
| |
| ===== NetFX3 From Install Media ===== | ===== NetFX3 From Install Media ===== |
| ===== Update Office ===== | ===== Update Office ===== |
| |
| **** | "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools" |
| |
| "%CommonProgramFiles%\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update "user" forceappshutdown="True" displaylevel="True" | "%CommonProgramFiles%\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update "user" forceappshutdown="True" displaylevel="True" |
| | |
| | Update Office |
| |
| ====== Services ====== | ====== Services ====== |
| * [[programs;firefox|Settings]] | * [[programs;firefox|Settings]] |
| |
| REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ProgramFiles%\Mozilla Firefox\firefox.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f | REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ProgramFiles%\Mozilla Firefox\firefox.exe" /t "REG_SZ" /d "~ HIGHDPIAWARE" /f |
| |
| ===== Thunderbird ===== | ===== Thunderbird ===== |