| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:10_ltsc_server [2026/01/24 18:39] – Sean Rhone | windows:10_ltsc_server [2026/02/10 22:35] (current) – [Information] 19044.6937 Sean Rhone |
|---|
| |
| * Microsoft Windows 10 IoT Enterprise LTSC | * Microsoft Windows 10 IoT Enterprise LTSC |
| * Version 21H2 (OS Build 19044.6811) | * Version 21H2 (OS Build 19044.6937) |
| * Server ((see [[windows;10|main notes]] for desktop)) | * Server ((see [[windows;10|main notes]] for desktop)) |
| |
| ==== Maintenance ==== | ==== Maintenance ==== |
| |
| "%SystemRoot%\System32\cleanmgr.exe" /sageset:65535 | "%SystemRoot%\System32\cleanmgr.exe" /sageset:9999 |
| |
| "notepad.exe" "%UserProfile%\Downloads\Maintenance.bat" | "notepad.exe" "%UserProfile%\Downloads\Maintenance.bat" |
| TITLE Maintenance | TITLE Maintenance |
| CD "%Temp%" | CD "%Temp%" |
| |
| "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update /force /queue | |
| "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" update /force /queue | |
| "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" executequeueditems | |
| "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" executequeueditems | |
| |
| "%SystemRoot%\System32\Dism.exe" /online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth | "%SystemRoot%\System32\Dism.exe" /online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth |
| "%SystemRoot%\System32\sfc.exe" /scannow | "%SystemRoot%\System32\sfc.exe" /scannow |
| |
| "%SystemRoot%\System32\cleanmgr.exe" /sagerun:65535 | "%SystemRoot%\System32\cleanmgr.exe" /sagerun:9999 |
| "%SystemRoot%\System32\vssadmin.exe" Delete Shadows /All | "%SystemRoot%\System32\vssadmin.exe" Delete Shadows /All |
| | "%SystemRoot%\System32\fsutil.exe" usn deleteJournal /D "%SystemDrive%" |
| |
| "%SystemRoot%\System32\Defrag.exe" /AllVolumes /Defrag /TierOptimize /SlabConsolidate /Retrim /Optimize | "%SystemRoot%\System32\Defrag.exe" /AllVolumes /Defrag /TierOptimize /SlabConsolidate /Retrim /Optimize |
| |
| CALL "%UserProfile%\Downloads\Reset Icon Cache.bat" | CALL "%UserProfile%\Downloads\Reset Icon Cache.bat" |
| | |
| | "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update /force /queue |
| | "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" update /force /queue |
| | "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" executequeueditems |
| | "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" executequeueditems |
| |
| :: End</code> | :: End</code> |
| |
| <code> | <code> |
| | @echo off |
| | |
| | TITLE Reset Icon Cache |
| | CD "%Temp%" |
| | |
| TASKKILL /F /IM "explorer.exe" | TASKKILL /F /IM "explorer.exe" |
| TIMEOUT /T "2" /NOBREAK | TIMEOUT /T "2" /NOBREAK |
| * Daily ''06:00:00 AM'' | * Daily ''06:00:00 AM'' |
| |
| SCHTASKS /Create /SC "ONCE" /TN "OS Restart" /TR "shutdown.exe /g /t 0 /f /d p:4:1" /ST "06:00" /F | SCHTASKS /Create /SC "DAILY" /TN "OS Restart" /TR "'%SystemRoot%\System32\shutdown.exe' /g /t '0' /f /d p:'4':'1'" /ST "06:00" /F |
| |
| ===== Maintenance ===== | ===== Maintenance ===== |
| |
| | * [[#maintenance|Maintenance.bat]] |
| * Application: Maintenance (Planned) | * Application: Maintenance (Planned) |
| * Monthly (7th) ''05:00:00 AM'' | * Monthly (first Wednesday) ''05:00:00 AM'' |
| |
| SCHTASKS /Create /SC "MONTHLY" /D "7" /M "*" /TN "OS Maintenance" /TR "%UserProfile%\Downloads\Maintenance.bat" /ST "05:00" /F | SCHTASKS /Create /SC "MONTHLY" /MO "FIRST" /D "WED" /M "*" /TN "OS Maintenance" /TR "%UserProfile%\Downloads\Maintenance.bat" /ST "05:00" /F |
| |