タスクスケジューラでゾンビタスクを見つけて終了する方法

タスクスケジューラでゾンビタスクを見つけて終了する方法

1 分ごとに exe を実行するタスクがあります。

奇妙な動作に気づきました。exe が 1 分ごとに 2 回実行されていることがわかりました。

タスクスケジューラでタスクを「終了」して無効にしました。そして今、この別の「ゾンビ」タスクが毎分実行され続けているのがわかります。

どうすれば見つけて殺すことができますか?

答え1

を使用すると、taskkill問題の解決に役立ちます。

コマンドの一般的な構文は次のようになります。

taskkill [OPTIONS] [PID]

ご想像のとおり、このコマンドには多くのオプションが用意されています。特に役立つオプションは次のとおりです。

/s COMPUTER -- (Where COMPUTER is the IP or address of a remote computer). The default is the local computer, so if you're working with a command on the local machine, you do not have to use this option.
/u DOMAIN\USER -- (Where DOMAIN is the domain and USER is the username you authenticate to). This option allows you run taskkill with the account permissions of the specified USERNAME or DOMAIN\USERNAME.
/p -- If you use the /u option, you will also need to include the /p option, which allows you to specify the user password.
/fi -- Allows you to run the taskkill command with filters.
/f -- Forces the command to be terminated.
/IM -- Allows you to use an application name instead of the PID (Process ID number) of the application.

これはCMDで次のように入力することで確認できます。 taskkill /?

taskkill コマンドのヘルプ スイッチを使用します。

アプリケーション名で強制終了する 不正なアプリケーションを強制終了する最も簡単な方法は、オプションtaskkillを使用することです/IM。これは次のように行います。

taskkill /IM APPLICATION_NAME

終了するアプリケーションの名前はどこにAPPLICATION_NAMEありますか。たとえば、Outlook が終了を拒否しているとします。これを taskkill で終了するには、次のコマンドを実行します。

taskkill /IM outlook.exe

これが役に立つことを願います - 幸運を祈ります!

関連情報