for %j in (%windir%\system32\*.dll) do regsvr32.exe /s %j
for %i in (%windir%\system32\*.ocx) do regsvr32.exe /s %i
for %j in (%windir%\system32\*.dll) do regsvr32.exe /s %j
for %i in (%windir%\system32\*.ocx) do regsvr32.exe /s %i
cmd< 需要管理员身份执行
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
sfc /scannow