What if I have to delete the scheduled task if user is not in the correct group? Use the following to delete scheduled task for user
Goal: Implement delete action and remove the scheduled task from users that is not in the AD group, Webview. Additional changes may be needed to reverse what the script has modified
1. We will reverse what was done in the previous article [https://wordpress.com/post/zestful-sli929.wordpress.com/663]
Create a delete action with NT AUTHORITY\SYSTEM to delete the task. Name is the same as the task.


2. Utilize cmd.exe to remove it.

3. Configure item level targeting.

Verify:

