PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Repair the component store first, then system files — in the order that actually works.
1DISM /Online /Cleanup-Image /RestoreHealth2sfc /scannow3 4# Results: C:\Windows\Logs\CBS\CBS.log and C:\Windows\Logs\DISM\dism.logDISM downloads repair files from Windows Update. On WSUS-managed machines without internet, add /Source:wim:D:\sources\install.wim:1 /LimitAccess from matching media.