1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WindowsでUIから終了できないプロセスをコマンド経由で強制終了

Last updated at Posted at 2022-12-27

概要

問題起きてるプロセスを停止したい。
でも、タスクマネージャーで下記ように操作しても、プロセス停止できない。
image.png

下記のようなダイアログが出る。

プロセスを終了できません
操作を完了できませんでした。
アクセスが拒否されました。

コマンド経由で強制停止

まずプロセスIDを調べる

コマンドプロンプト開いて下記。

タスク一覧表示コマンド
tasklist

『PID』の列がプロセスID。
image.png

タスク一覧を一旦テキストで出力しておくのがおススメ。
(『検索』『作業前と作業後の比較』『エビデンス』の用途に使えるので)

タスク一覧をtxtに書き出しコマンド
tasklist > tasklist.txt

大体、コマンドプロンプト起動すると C:\Users\ユーザー名 が起点フォルダーになっている。
その場合、txtはそのフォルダーに出力される。

プロセスIDを指定してタスク強制終了コマンド

コマンドプロンプトを管理者権限で開いて下記。

taskkill /f /pid プロセスID

誤って別の重要なプロセスを停止してしまわないように注意!
落ち着いて『本当にこのプロセスIDでいいか』を再度確認してからコマンド流そう!

参考サイトさん

バージョン

Windows 10 Pro 21H2 OSビルド 19045.2364

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?