System.Management.Automation.PSCredential class centralizes the management of usernames, passwords and credentials. PSCredential is returned by the get-credential cmdlet. PSCredential object are UserName (which is a System.String) and Password (which is a System.Security.SecureString). PSCredential object without user interaction Credential property of System.Management.Automation.PSDriveInfo