Before deleting a task in the task scheduler with schtasks command, how can I check that a target task already exists or not with PowerShell?
My question is deferent of yours, and sodawillow solved my problem! thank you.
Before deleting a task in the task scheduler with schtasks command, how can I check that a target task already exists or not with PowerShell?
My question is deferent of yours, and sodawillow solved my problem! thank you.
You can check if it is in this list:
Get-ScheduledTask | Select -ExpandProperty TaskName