September 13th, 2013

PowerTip: List Runbooks with PowerShell

Doctor Scripto
Scripter

Summary: Use community-based cmdlets to list available runbooks in Orchestrator.

Hey, Scripting Guy! Question How can I list the runbooks in Orchestrator by using Windows PowerShell?

Hey, Scripting Guy! Answer Leverage the Orchestrator Web Service PowerShell Cmdlets from CodePlex, and use the following new cmdlets:

$ORCHSRV=”MyOrchestratorServerName”

$OWS=NEW-SCOWebServerURL –servername $ORCHSRV

GET-SCOMonitorRunbook –WebServerUrl $OWS | FORMAT-TABLE Path,Name,Id -autosize

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.