Windows Scheduled Tasks LWRP

Hi All.

Here is another basic LWRP for Windows, this time scheduled tasks!

It currently does just enough to create a scheduled task that repeats either daily or every X minutes. Adding in further repeat options and deleting/enabling/disabling shouldn't be too difficult if anyone wants to add it in.
This probably won't work correctly unless your computer language is English as it works by parsing the output of schtasks.exe

Cheers,
Dave.
David Leaver
Senior Software Engineer

DDI +64 7 857 0805 | M +64 21 876684 | E dave@smartrak.co.nzmailto:dave@smartrak.co.nz | T +64 7 857 0800 | F +64 7 857 0801
Waikato Innovation Park, Ruakura Rd | PO Box 7239, Hamilton 3247, NZ | www.smartrak.co.nzhttp://www.smartrak.co.nz/

[Description: smartrak_banner]http://www.smartrak.co.nz/

This email and any attachments are confidential and are for the intended addressee(s) only. Confidentiality is not waived due to accidental delivery to you. If you have received this communication erroneously, please delete.

David,
This looks great! Would you be up for contributing this to the Windows
primitives cookbook [0][1] I released on Friday?

The vision for the 'windows' cookbook is to hold low-level resources that
ease the pain of recipe/cookbook development that targets the Windows
platform. Currently this cookbook contains the following
resources/providers:

  • windows_package
  • window_registry
  • windows_zipfile

Some of these resources mirror their *nix counterparts (ie
windows_package)...scheduledtask would fit right in as it mirrors the core
Chef 'cron' resource. The cookbook is also a real community effort as
Doug MacEachern wrote the initial versions of the windows_registry and
windows_zipfile LWRPs.

Seth

--
Opscode, Inc.
Seth Chisamore, Senior Technical Evangelist
IRC, Skype, Twitter, Github: schisamo

[0] http://ckbk.it/windows
[1] https://github.com/opscode/cookbooks/tree/master/windows

On Mon, Jul 11, 2011 at 12:08 AM, David Leaver dave@smartrak.co.nz wrote:

Hi All.****


Here is another basic LWRP for Windows, this time scheduled tasks!****

chef-cookbooks/scheduledtask at master · danzel/chef-cookbooks · GitHub****


It currently does just enough to create a scheduled task that repeats
either daily or every X minutes. Adding in further repeat options and
deleting/enabling/disabling shouldn’t be too difficult if anyone wants to
add it in.****

This probably won’t work correctly unless your computer language is English
as it works by parsing the output of schtasks.exe****


Cheers,
Dave.****

David Leaver
Senior Software Engineer

*DDI *+64 7 857 0805 | *M *+64 21 876684 | *E *dave@smartrak.co.nz
*| * T +64 7 857 0800 *| *F +64 7 857 0801
Waikato Innovation Park, Ruakura Rd *| * PO Box 7239, Hamilton 3247, NZ *|

  • www.smartrak.co.nz

[image: Description: smartrak_banner] http://www.smartrak.co.nz/

This email and any attachments are confidential and are for the intended
addressee(s) only. Confidentiality is not waived due to accidental delivery
to you. If you have received this communication erroneously, please delete.