Windows Dev Center

Expand Minimize

PSCredentialUIOptions Enumeration

Defines the options that are available, such as different validation options, when prompting for credentials.

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

Dim instance As PSCredentialUIOptions

<FlagsAttribute> _
Public Enumeration PSCredentialUIOptions
/** @attribute FlagsAttribute() */ 
public enum PSCredentialUIOptions
public enum PSCredentialUIOptions

Member nameDescription
AlwaysPromptAlways prompts, even if a persisted credential is available.
DefaultValidates the user name, but not its existence or correctness.
NonePerforms no validation.
ReadOnlyUserNameRepresents a read-only user name that the user may not modify.
ValidateUserNameSyntaxValidates the syntax of the user name, but not its existence or correctness.

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


Target Platforms

© 2015 Microsoft