September 9th, 2013

PowerTip: Use PowerShell to Access Orchestrator Variables or Data

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to access the Orchestrator variables or published data.

Hey, Scripting Guy! Question How can I use Windows PowerShell to access the Orchestrator variables or published data from the data bus?

Hey, Scripting Guy! AnswerRight-click the middle of the script, click Subscribe, and choose Variable or Published Data as you normally would in Orchestrator.

Ensure that you enclose the subscribed data within quotation marks if the information is a string or Date/Time data, and then assign it to a Windows PowerShell object as you normally would:

$FooString=”{SomeCoolThingInOrchestrator}”

$FooNumber={ACounterOfSomeKind}

[Datetime]$FooDate=”{DateFieldfromOrchestrator}”

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.

Feedback