PowerShell / 任务调度程序 / 任务存在检查

PowerShell / task scheduler / task exist check

在使用 schtasks 命令删除任务计划程序中的任务之前,如何使用 PowerShell 检查目标任务是否已经存在?

我的问题与你的不同,sodawillow 解决了我的问题!谢谢。

您可以检查它是否在此列表中:

Get-ScheduledTask | Select -ExpandProperty TaskName