Windows desktop applications
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSCredentialTypes Enumeration


Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the types of Windows PowerShell credentials.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

public enum PSCredentialTypes

Member nameDescription

Default credentials.


Credentials valid for a domain.


Generic credentials.

These constants are used when prompting for credentials using the PromptForCredential method.

Return to top
© 2016 Microsoft