Online Help > PowerShell Scripting

Get-RDMSessionDomain

SYNOPSIS

Get the domain from the specified session.

 

SYNTAX

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

 

DESCRIPTION

Get the domain from the specified session.

 

PARAMETERS

  -ID <Guid>

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

 

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

 

  -Session <PSConnection>

(Required) Specifies the session to set the domain 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-RDMSessionDomain -detailed". For technical information, type "Get-Help Get-RDMSessionDomain -full".

 

EXAMPLE 1

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

 

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

 

EXAMPLE 2

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

 

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

 

RELATED LINKS

Get-RDMSession

Get-RDMSessionPassword

Get-RDMSessionUserName

Set-RDMSessionDomain

Set-RDMSessionPassword

Set-RDMSessionUsername