Search notes:

System.Management.Automation.PSCredential (class)

The System.Management.Automation.PSCredential class centralizes the management of usernames, passwords and credentials.
An instance of PSCredential is returned by the get-credential cmdlet.
The two important properties of a PSCredential object are UserName (which is a System.String) and Password (which is a System.Security.SecureString).

See also

Creating a PSCredential object without user interaction
The Credential property of System.Management.Automation.PSDriveInfo
$host.ui.promptForCredential(…)

Index