1
0

Auto-commit: 2025-10-31 08:58:35

This commit is contained in:
David Wuibaille
2025-10-31 08:58:36 +01:00
parent 7d94414992
commit 7cc3011354
1088 changed files with 193455 additions and 0 deletions

17
Windows-Cleanup/readme.md Normal file
View File

@@ -0,0 +1,17 @@
# 🧹 Windows Component & Disk Cleanup Script
## 🔧 What it does
- On **Windows 10**, runs **DISM** component store cleanup:
- `/AnalyzeComponentStore` then `/StartComponentCleanup /ResetBase`
- Deletes `C:\Windows\Temp\*`
- Preconfigures **Disk Cleanup** (CleanMgr) options via registry (`StateFlags1234`)
and runs `cleanmgr.exe /SAGERUN:1234` to purge:
- Previous Windows installations, Update cleanup, driver packages, thumbnails,
WER files, ESD setup files, upgrade logs, etc.
- Uses **Sysnative** redirection when launched from 32bit context
## ✅ Prerequisites
- Run as **Administrator**
- Target **Windows 10** for the DISM step (script skips it otherwise)
- This is **destructive cleanup**: it may remove *Windows.old*, cached updates,
minidumps, and other data; ensure you dont need rollback files