Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.