Script library
Export-UpdateLog untested here · 0 fixed, 0 notCollect the update logs. Zips CBS.log, the DISM log and the Windows Update log. Read only.
Get-BitsJobError untested here · 0 fixed, 0 notFind the BITS job behind a download error. Lists the BITS jobs and prints the lines that mention an error code. Read only.
Repair-WindowsComponentStore untested here · 0 fixed, 0 notRepair the Windows component store. Runs DISM ScanHealth, CheckHealth and RestoreHealth, then sfc /scannow.
Repair-WindowsUpdateService untested here · 0 fixed, 0 notStart the Windows Update service. Shows the Windows Update service state and starts it. With -FixStartType, changes Disabled to Manual.
Reset-ComponentStorePermission untested here · 0 fixed, 0 notReset permissions on the component store. Saves, then resets, the permissions on WinSxS and SoftwareDistribution, and sets TrustedInstaller as the owner of WinSxS.
Reset-WindowsUpdateAgent untested here · 0 fixed, 0 notReset the Windows Update agent. Stops the update services, renames the SoftwareDistribution and catroot2 folders so Windows rebuilds them, and starts the services again.