Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Get-ChildItem C:\ -Directory -Force -ErrorAction SilentlyContinue | ForEach-Obje
} | Sort-Object GB -Descending | Select-Object -First 12

# How much the Windows component store (WinSxS) can reclaim
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
Repair-WindowsImage -Online -ScanHealth

@Karl-WE Karl-WE Jul 7, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit baffled that this is the second command, found missing in dism module now. The other one is a specific compression methods for exporting images (Export-WindowsImage). 🤔

Asking internally on DL.


# Largest Windows event logs
Get-ChildItem C:\Windows\System32\winevt\Logs -File | Sort-Object Length -Descending |
Expand Down Expand Up @@ -238,7 +238,7 @@ can need a reboot to finish, so if the analysis still reports reclaimable packag
afterward, a maintenance reboot completes the cleanup.

```powershell
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
Repair-WindowsImage -Online -StartComponentCleanup
Comment thread
Karl-WE marked this conversation as resolved.
```

**b. Clear the Windows Update download cache.** Safe to clear; Windows re-downloads
Expand Down Expand Up @@ -283,7 +283,7 @@ safe win):
# cluster does not spike all at once; the returned per-node exit code confirms success
# (0 = succeeded). Raise the throttle only if the cluster has headroom.
Invoke-Command -ComputerName (Get-ClusterNode).Name -ThrottleLimit 2 -ScriptBlock {
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
Repair-WindowsImage -Online -StartComponentCleanup
[pscustomobject]@{ Node = $env:COMPUTERNAME; ExitCode = $LASTEXITCODE }
Comment thread
Karl-WE marked this conversation as resolved.
} | Sort-Object Node | Format-Table -AutoSize
```
Expand Down