Dela via


EnterPSSessionCommand.Credential Property

Definition

Specifies the credentials of the user to impersonate in the virtual machine. If this parameter is not specified then the credentials of the current user process will be assumed.

public:
 virtual property System::Management::Automation::PSCredential ^ Credential { System::Management::Automation::PSCredential ^ get(); void set(System::Management::Automation::PSCredential ^ value); };
public override System.Management.Automation.PSCredential Credential { get; set; }
[System.Management.Automation.Credential]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="VMId", Position=1, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="VMName", Position=1, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.Parameter(ParameterSetName="ComputerName", ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.Parameter(ParameterSetName="Uri", ValueFromPipelineByPropertyName=true)]
public override System.Management.Automation.PSCredential Credential { get; set; }
member this.Credential : System.Management.Automation.PSCredential with get, set
[<System.Management.Automation.Credential>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="VMId", Position=1, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="VMName", Position=1, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.Parameter(ParameterSetName="ComputerName", ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.Parameter(ParameterSetName="Uri", ValueFromPipelineByPropertyName=true)>]
member this.Credential : System.Management.Automation.PSCredential with get, set
Public Overrides Property Credential As PSCredential

Property Value

Attributes

Applies to