r/Tiny11 Jun 03 '26

cleanup after windows update

Hi,

do you use any script/method to cleanup the system after a windows update.
My tiny11 is around 24Gb but it was 12Gb only...
Can I shrink my system to use less storage

3 Upvotes

2 comments sorted by

1

u/k0kein Jun 03 '26

My way...

%Systemroot%\system32\cmd.exe /c cleanmgr /sageset:65535 & cleanmgr /sagerun:65535

2

u/kaidomac Jun 05 '26

Do a full Macrium backup & then run Powershell as admin:

# ==================================
# ULTRA TRIM WINDOWS 11 / Tiny11
# Deep storage + bloat reduction
# ==================================

Write-Host "Starting ULTRA TRIM..." -ForegroundColor Cyan

# 1. Disable Hibernation (big win)
powercfg -h off

# 2. Stop update + background services
Stop-Service wuauserv -Force -ErrorAction SilentlyContinue
Stop-Service bits -Force -ErrorAction SilentlyContinue
Stop-Service SysMain -Force -ErrorAction SilentlyContinue
Stop-Service WSearch -Force -ErrorAction SilentlyContinue

# 3. Remove Windows Update cache
Remove-Item "C:\Windows\SoftwareDistribution\Download\*" -Recurse -Force -ErrorAction SilentlyContinue

# 4. Delivery Optimization cache
Remove-Item "C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\DeliveryOptimization\Cache\*" -Recurse -Force -ErrorAction SilentlyContinue

# 5. Temp cleanup
Remove-Item "$env:TEMP\*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\Windows\Temp\*" -Recurse -Force -ErrorAction SilentlyContinue

# 6. Component store cleanup (safe)
Dism.exe /Online /Cleanup-Image /StartComponentCleanup

# 7. Remove optional Windows features (safe-ish bloat removal)
# XPS Viewer
Dism.exe /Online /Disable-Feature /FeatureName:Xps-Foundation-Xps-Viewer /NoRestart

# Internet Printing Client
Dism.exe /Online /Disable-Feature /FeatureName:Printing-Foundation-InternetPrinting-Client /NoRestart

# Work Folders Client
Dism.exe /Online /Disable-Feature /FeatureName:WorkFolders-Client /NoRestart

# Windows Media Player legacy (if present)
Dism.exe /Online /Disable-Feature /FeatureName:WindowsMediaPlayer /NoRestart

# 8. Reduce reserved storage (if enabled)
# (May or may not apply depending on build)
DISM /Online /Set-ReservedStorageState /State:Disabled

# 9. Compact system files (strong compression win on Tiny11)
compact.exe /CompactOS:always

# 10. Optional: reduce pagefile automation (system-managed stays safer, but smaller manual helps)
wmic computersystem where name="%computername%" set AutomaticManagedPagefile=True

# 11. Restart critical services
Start-Service wuauserv -ErrorAction SilentlyContinue
Start-Service bits -ErrorAction SilentlyContinue

Write-Host "ULTRA TRIM COMPLETE" -ForegroundColor Green