Compartilhar via


Run VMM PowerShell Script

Applies To: System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator, System Center 2012 SP1 - Orchestrator

The Run VMM PowerShell activity is used to call any PowerShell activity

Run VMM PowerShell Script Required Properties

Element

Description

Valid Values

PowerShell Script

The PowerShell script to execute

$x = 4;

Output Variable 01

Use a variable name defined in your script that you want to return as Published Data. You can use either the PowerShell notation $var1 or the variable name var1. The value of an element must be a simple type value and not an object or collection of objects. You cannot specify an object property, such as $var1.propertyname, as an output element. The name in the output element must be the name of an actual PowerShell variable. If the PowerShell variable contains a complex type or a collection of objects, the data returned is similar to System.Object or System.Object[] because the contents of the output variable cannot be represented as a string.

$x

Run VMM PowerShell Script Optional Properties

Element

Description

Valid Values

Same as Output Variable 01 above.

$x

Run VMM PowerShell Script Published Data

Element

Description

Valid Values

PowerShell Script

The PowerShell script that was executed

 

Error Output

The errors generated by the execution of the script

 

See Also

Concepts

System Center Virtual Machine Manager Activities
System Center Integration Pack for System Center 2012 Virtual Machine Manager