I have been doing similar things to this for quite a while now. It was part of my Interconnect 2015 presentation.
I’m using Tasks to create Tasks, and I am using a secure parameter for the console operator password.
I’m also assuming that the operator taking the action is the operator that will be authenticating to the REST API to create the resulting content. I’m also assuming that the site that the action is taken from is also the site the content should be created in.
For these reasons, I only prompt for the password, all other info is assumed.
See here:
- https://bigfix.me/fixlet/details/3973
- https://bigfix.me/fixlet/details/6092
- https://bigfix.me/fixlet/details/6116
- https://bigfix.me/fixlet/details/6132
- https://bigfix.me/fixlet/details/3905
I highly recommend using tools like AutoPkg to automate the creation of custom content, especially when tied to tools like Jenkins, but this has more dependencies and difficulty to set up. The cool part about using a Task to create other Tasks or baselines is that there are no external dependencies.
You can now use AutoPkg running on OS X to automate the creation of Windows Software Updates / Patches. See @hansen_m 's and my presentation from MacAdmins 2015: