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%\System32\WindowsPowerShell\v1.0\Modules in a folder called Orchestrator and rename the module to Orchestrator.psm1
Here is the code I currently use to connect and retrieve information.
Import-Module Orchestrator $Cred = Get-Credential $URL = http://Server:81/Orchestrator2012/Orchestrator.svc/
#Folder with the Runbook folders $RunBookPath = “\Automation\0.0″ $Runbook = Get-OrchestratorRunbook -serviceurl $url -runbookpath $RunBookPath -credentials $Cred