Scheduled_task?

46 views
Skip to first unread message

Jason McMahan

unread,
May 16, 2017, 7:59:17 PM5/16/17
to Puppet Users
Good day,
We were using the scheduled_task resource to create a task. It creates the task however we nwed to create the task in a folder under task scheduler.
\automation\inventory

We tried name => '\automation\inventory\
But at run says can not find path.
We looked at working_dir but that didn't sound promising either. Any suggestions would be greatly appreciated. Thank you

Jason McMahan

unread,
May 17, 2017, 8:34:22 AM5/17/17
to Puppet Users
The full error is 

Error: Failed to call #<Win32::TaskScheduler::COM::TaskScheduler:0x000000093b6ce0>::NewWorkItem with HRESULT: -214702489
3.:  The system cannot find the path specified.
Error: /Stage[main]/Profile::Windows::Applications::Sysinfo::Base/Scheduled_task[Automation/Inventory]/ensure
: change from absent to present failed: Failed to call #<Win32::TaskScheduler::COM::TaskScheduler:0x000000093b6ce0>::New
WorkItem with HRESULT: -2147024893.:  The system cannot find the path specified.

The folder exists but the task is not created nor seen.

I believe i may just need to create it in the root but would like verification.

Thank you

Josh Cooper

unread,
May 17, 2017, 12:09:14 PM5/17/17
to puppet...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53648950-dc88-4188-b2e4-678a1a14dec0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Puppet only supports v1 of the Windows task scheduler API (which is present in 2003 and up), so I'm inclined to think folders are a v2 API feature, which is filed as https://tickets.puppetlabs.com/browse/PUP-6455.

Josh

--
Josh Cooper | Software Engineer

Jason McMahan

unread,
May 18, 2017, 11:45:06 AM5/18/17
to Puppet Users
Thank you for confirming my suspicion Josh.


On Wednesday, May 17, 2017 at 11:09:14 AM UTC-5, Josh Cooper wrote:
On Wed, May 17, 2017 at 5:34 AM, Jason McMahan <jason.m...@gmail.com> wrote:
The full error is 

Error: Failed to call #<Win32::TaskScheduler::COM::TaskScheduler:0x000000093b6ce0>::NewWorkItem with HRESULT: -214702489
3.:  The system cannot find the path specified.
Error: /Stage[main]/Profile::Windows::Applications::Sysinfo::Base/Scheduled_task[Automation/Inventory]/ensure
: change from absent to present failed: Failed to call #<Win32::TaskScheduler::COM::TaskScheduler:0x000000093b6ce0>::New
WorkItem with HRESULT: -2147024893.:  The system cannot find the path specified.

The folder exists but the task is not created nor seen.

I believe i may just need to create it in the root but would like verification.

Thank you



On Tuesday, May 16, 2017 at 6:59:17 PM UTC-5, Jason McMahan wrote:
Good day,
We were using the scheduled_task resource to create a task. It creates the task however we nwed to create the task in a folder under task scheduler.
\automation\inventory

We tried name => '\automation\inventory\
But at run says can not find path.
We looked at working_dir but that didn't sound promising either. Any suggestions would be greatly appreciated. Thank you

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

Puppet only supports v1 of the Windows task scheduler API (which is present in 2003 and up), so I'm inclined to think folders are a v2 API feature, which is filed as https://tickets.puppetlabs.com/browse/PUP-6455.
Reply all
Reply to author
Forward
0 new messages