LoginSignup
2
3

More than 1 year has passed since last update.

更新プログラムを wusaコマンド で手早く削除する(KB指定)

Last updated at Posted at 2020-04-29

不具合のある(KB番号がわかる)Windowsの更新プログラムをコマンドプロンプトから削除する

Windows Update スタンドアロン インストーラー

/uninstall オプションで、アンインストールが可能

使い方
wusa /uninstall /kb:<KB 番号>
使用例
wusa /uninstall /kb:4551762

コマンドを叩くとウィンドウズが表示されるので、指示にしたがってアンインストールしておわり。
/quietオプションをつけると、全自動になるがエラーが起きても何も表示されないのでオススメしない。

alt

指定した更新プログラムがない場合はエラーが表示される。

alt

その他のオプション

ヘルプ
wusa </? | /h | /help>

wusa <update> [/quiet] [/norestart | /warnrestart:<秒> | /promptrestart | /forcerestart] [/log:<ファイル名>]

wusa /uninstall <update> [/quiet] [/norestart | /warnrestart:<秒> | /promptrestart | /forcerestart] [/log:<ファイル名>]

wusa /uninstall /kb:<KB 番号> [/norestart | /warnrestart:<秒> | /promptrestart | /forcerestart] [/log:<ファイル名>]

/?, /h, /help
-  ヘルプ情報を表示します。

update
-  MSU ファイルの完全パスです。

/quiet
-  Quiet モード、ユーザーの操作はありません。必要に応じて再起動します。

/uninstall
-  パッケージがアンインストールされます。

/kb
-  /uninstall と組み合わせた場合、KB 番号に関連付けられたパッケージがアンインストールされます。

/norestart
-  /quiet と組み合わせた場合、インストーラーは再起動を開始しません。

/warnrestart
-  /quiet と組み合わせた場合、再起動を開始する前にユーザーに警告が表示されます。

/promptrestart
-  /quiet と組み合わせた場合、再起動を開始する前にプロンプトが表示されます。

/forcerestart
-  /quiet と組み合わせた場合、強制的にアプリケーションを閉じ、再起動します。

/log
-  ログを有効にします。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3