Link to home
Start Free TrialLog in
Avatar of dvanaken
dvanakenFlag for United States of America

asked on

Group Policy scheduled task - can't "delete" task

I was experimenting with running scheduled tasks on Win7 and Win8.1 using a GPO.  It is now working correctly but I am unable to delete a test task I had successfully created on the Win7 machines.  I originally created it NOT as a "at least windows 7" task.  I deleted it from the GPO and then went back and re-created it as a "delete".  I tried both levels of task configuration, and after running gpupdate /force on the targets, it still exists.  It's spelled the same.  I tried both domain/admin and SYSTEM for running the delete task.  Task history is confusing as it shows both deleting and then re-creating in the same gpupdate...

10/7/2014 9:25:29 PM      Task registration updated      Info      00000000-0000      "User ""domain\administrator""  updated Task Scheduler task ""\Wakeup"""
10/7/2014 9:25:29 PM      Task registered                  Info      00000000-0000      "User ""domain\administrator""  registered Task Scheduler task ""\Wakeup"""
10/7/2014 9:25:27 PM      Task registration deleted      Info      00000000-0000      "User ""NT AUTHORITY\System""  deleted Task Scheduler task ""\Wakeup"""

DC is running Server 2012.  How do I get rid of this task?  Thanks
Avatar of Joseph Moody
Joseph Moody
Flag of United States of America image

Could you delete it from C:\Windows\Tasks\?

As a file preference?
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dvanaken

ASKER

When looking at a task in Task Scheduler - is there a way to know if it is the result of a GPO or is a locally entered task?
No.
Ok - I found it using gpresult.  It turns out when testing I had added a task to Default Domain Policy even though I was working with a new GPO - I forgot that was there.  I set it to "delete".

In a few days should I delete the "delete" tasks from the GPOs?
The delete task can be setup to run only once (in the options of that group policy preference item). Either you do that (preferred) or you delete it after making sure it has run everywhere or...you make sure no new task will use that name anymore:)
Rather than mess with the delete task, I'll give it a week and then delete it.  Thanks again. --Dale
Thanks again - all is well now.