Online Help > PowerShell Scripting

Get-RDMSessionPassword

SYNOPSIS

Get the password from the specified session.

 

SYNTAX

Get-RDMSessionPassword -AsPlainText [AsPlainText] <SwitchParameter> -ID [ID] <Guid> -Session [Session] <PSConnection> [<CommonParameters>]

 

DESCRIPTION

Get the password from the specified session. Session must be marked as "Allow show credentials" if not null is returned.

 

PARAMETERS

  -AsPlainText <SwitchParameter>

Returns the password as plain text.

 

  -ID <Guid>

(Required) Specifies the ID of the session to get the password from.

 

Must be a valid GUID, in the form {00000000-0000-0000-0000-000000000000}.

 

  -Session <PSConnection>

(Required) Specifies the session to get the password from.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help Get-RDMSessionPassword -detailed". For technical information, type "Get-Help Get-RDMSessionPassword -full".

 

EXAMPLE 1

PS C:\> Get-RDMSessionPassword "{00000000-0000-0000-0000-000000000000}"

 

Get the password from the session with ID = "{00000000-0000-0000-0000-000000000000}".

 

EXAMPLE 2

PS C:\> $list = Get-RDMSession; Get-RDMSessionPassword $list[1].ID

 

Retrieves the list of available sessions and gets the password from the the second element in the list.

 

RELATED LINKS

Get-RDMSession

Get-RDMSessionDomain

Get-RDMSessionUserName

Set-RDMSessionDomain

Set-RDMSessionPassword

Set-RDMSessionUsername