Remove scheduled task on Windows 7 x64 SP1 with Puppet 3.8.3

110 views
Skip to first unread message

jmp242

unread,
Apr 7, 2016, 2:50:03 PM4/7/16
to Puppet Users
I want to delete or at least disable certain scheduled tasks via Puppet.
      scheduled_task { 'Lenovo Customer Feedback Program 64': ensure => absent, }

Doesn't seem to do anything - the tasks are still there in the Task Scheduler GUI and puppet doesn't give a notice or error.

      scheduled_task { 'Lenovo Customer Feedback Program 64': enabled => false, }

Gives errors saying it cannot set ensure => present on the tasks.

So - is this supposed to work? Did I get the Name wrong? Any ideas?
Reply all
Reply to author
Forward
0 new messages