InvokeCommandCommand.Credential Property

Definition

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

C++
public:
 virtual property System::Management::Automation::PSCredential ^ Credential { System::Management::Automation::PSCredential ^ get(); void set(System::Management::Automation::PSCredential ^ value); };

Property Value

Attributes

Applies to

Produto Versións
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0