Credential Property

CmdletProvider.Credential Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets the credentials used by the provider to perform its operations.

Namespace:   System.Management.Automation.Provider
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public PSCredential Credential { get; }

Property Value

Type: System.Management.Automation.PSCredential

A PSCredential object that specifies the credentials used by the provider to perform its operations.

Windows PowerShell provides a PSCredential class for credentials. This class should be used for credential information instead of using separate properties such as user name and password.

For more information about providers, see Windows PowerShell Providers [ps].

Return to top

Community Additions

ADD
Show:
© 2016 Microsoft