Online Help > PowerShell Scripting

Get-RDMSessionUserName

SYNOPSIS

Get the username from the specified session.

 

SYNTAX

Get-RDMSessionUserName -ID [ID] <Guid> -Session [Session] <PSConnection> [<CommonParameters>]

 

DESCRIPTION

Get the username from the specified session.

 

PARAMETERS

  -ID <Guid>

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

 

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

 

  -Session <PSConnection>

(Required) Specifies the session to set the username to.

 

  <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-RDMSessionUserName -detailed". For technical information, type "Get-Help Get-RDMSessionUserName -full".

 

EXAMPLE 1

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

 

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

 

EXAMPLE 2

PS C:\> $list = Get-RDMSession; Get-RDM-Password $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-RDMSessionPassword

Set-RDMSessionDomain

Set-RDMSessionPassword

Set-RDMSessionUsername