StartJobCommand.ScriptBlock Property

Definition

Command to execute specified as a string. This can be a single cmdlet, an expression or anything that can be internally converted into a ScriptBlock.

public:
 virtual property System::Management::Automation::ScriptBlock ^ ScriptBlock { System::Management::Automation::ScriptBlock ^ get(); void set(System::Management::Automation::ScriptBlock ^ value); };
public override System.Management.Automation.ScriptBlock ScriptBlock { get; set; }
[System.Management.Automation.Alias(new System.String[] { "Command" })]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ComputerName", Position=0)]
[System.Management.Automation.ValidateTrustedData]
public override System.Management.Automation.ScriptBlock ScriptBlock { get; set; }
[System.Management.Automation.Alias(new System.String[] { "Command" })]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ComputerName", Position=0)]
public override System.Management.Automation.ScriptBlock ScriptBlock { get; set; }
member this.ScriptBlock : System.Management.Automation.ScriptBlock with get, set
[<System.Management.Automation.Alias(new System.String[] { "Command" })>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ComputerName", Position=0)>]
[<System.Management.Automation.ValidateTrustedData>]
member this.ScriptBlock : System.Management.Automation.ScriptBlock with get, set
[<System.Management.Automation.Alias(new System.String[] { "Command" })>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ComputerName", Position=0)>]
member this.ScriptBlock : System.Management.Automation.ScriptBlock with get, set
Public Overrides Property ScriptBlock As ScriptBlock

Property Value

Attributes

Remarks

This is used in the in process case with a "ValueFromPipelineProperty" enabled in order to maintain compatibility with v1.0

Applies to