Last active
March 12, 2017 01:55
-
-
Save rz7d/b4bd2487d2843640d0fcbaa4b97336ca to your computer and use it in GitHub Desktop.
更新を無理やりアンインストールするバッチファイルです。テレメトリ関連の更新プログラムを消すときにお使いください。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem アンインストール対象の更新プログラム | |
set TARGET_KB=2952664 | |
title KB Killer (Target: KB%TARGET_KB%) | |
:check | |
systeminfo 2>NUL | find "KB%TARGET_KB%" >NUL | |
if errorlevel 1 ( | |
echo Job has successfully completed. | |
exit 0 | |
) else ( | |
rem アンインストールを実行 | |
echo Uninstalling... | |
start /w wusa /uninstall /kb:%TARGET_KB% /quiet /norestart | |
goto check | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment