p.28[URL]
Windows UPDATE コンポーネント リセット
Windows Update のコンポーネントをリセットする方法
バッチファイル
rem このバッチと同一ディレクトリにログを残す
call :main >"%~dp0WINDOWS UPDATE ERR CLEAR.TXT" 2>&1 <nul %*
goto :eof
:main
rem Windows Update のコンポーネントをリセットする方法 KB971058 のコマンド
rem 最終更新日: 11/22/2016 04:44:00 - リビジョン: 64.0
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
rem Qmgr*.dat ファイルを削除
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
rem 前回のソフトウェア配布フォルダーのバックアップを削除
rd %systemroot%\SoftwareDistribution.bak /q /s
rd %systemroot%\system32\catroot2.bak /q /s
rem ソフトウェア配布フォルダーのバックアップ コピーの名前を変更
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
rem BITS サービスと Windows Update サービスを、既定のセキュリティ記述子にリセット
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
cd /d %windir%\system32
regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll
rem Winsock をリセット
netsh winsock reset
netsh winhttp reset proxy
rem BITS サービス、Windows 更新プログラム サービス、および暗号化サービスを再起動
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
shutdown /r /t 3
exit