PowerTip: Publish Data to Orchestrator Data Bus

Summary: Publish Windows PowerShell data to the Orchestrator data bus.

Hey, Scripting Guy! Question Can I access data in my Windows PowerShell script from within Orchestrator?

Hey, Scripting Guy! AnswerSelect Published Data in the Run .NET Script activity, click Add, and fill in the details for the object you want to publish:

“Name”              Name you wish to use on the Databus
“Type”                           Type of .NET Object, Date/Time, String or Integer
“Variable Name”             PowerShell Object Name without the “$”

For example:

PowerShell

$UserName=”John Smith”

Orchestrator Published Data option in “Run .NET Script”

Image of menu