'Delete task from task scheduler based on userid powershell

I need to find tasks which runs using SYSTEM and delete rest of the tasks running using any other account

enter image description here

I was trying to find the job first, then unregister, but not getting any filters to do that.

Get-ScheduledTask -TaskName "SPOC_Inventory"

Need help in this



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source