Over the last couple of years, I’ve been involved in the SCCM 2007/2012 realm and automation in general. One of the other products within the System Center family is System Center Orchestrator 2012, which helps with automation. One of the things that interests me is System Center 2012 – Orchestrator Web Service reference
I’m trying to learn more in-depth, my latest adventure is trying to make all my calls from PowerShell to the web service to perform actions within Runbooks. I hope future articles can go more in-depth.
For introduction, there is a PowerShell module hosted on CodePlex which provides a good starter module. This article isn’t meant to teach PowerShell, I download the module and put in %SystemRoot%System32WindowsPowerShellv1.0Modules in a folder called Orchestrator and rename the module to Orchestrator.psm1
Here is the code I currently use to connect and retrieve information.
$Cred = Get-Credential
$URL = http://Server:81/Orchestrator2012/Orchestrator.svc/
#Folder with the Runbook folders
$RunBookPath = “Automation.0”
$Runbook = Get-OrchestratorRunbook -serviceurl $url -runbookpath $RunBookPath -credentials $Cred