ConanTheGerbil
ConanTheGerbil

Reputation: 777

How to identify the script being run by a powershell task

I'm running a powershell script on Windows 11. The process was started automatically by the task scheduler and is working as expected.

I can see a couple of powershell tasks running as 'background processes' in the task-scheduler. How can identify the name of the script being run? Basically I want to kill the process, but would like to confirm beforehand that I've identified the correct one.

I've tried right-clicking on the task, but properties only seem to show the powershell properties NOT the script details.

Upvotes: 0

Views: 1341

Answers (1)

MikeSh
MikeSh

Reputation: 432

If you know the script is executed by Task Scheduler, then the easiest way to manually stop it is using Task Scheduler - just find the task and click "End" in the context menu:

enter image description here

Upvotes: 1

Related Questions