Online Help > PowerShell Scripting

Get-RDMSessionProperty

SYNOPSIS

Get the value of property given a session ID and path.

 

SYNTAX

Get-RDMSessionProperty -ID [ID] <Guid> -Path [Path] <String> -Property [Property] <String> [<CommonParameters>]

 

DESCRIPTION

Protected values will always return null.

 

PARAMETERS

  -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}.

 

  -Path <String>

The path to the property being read (refernce RDM export xml). If top level property do not sepcify parameter or pass empty string [""] or $null

 

  -Property <String>

(Required) Property to read(get).

 

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

 

EXAMPLE 1

PS C:\> Get-RDMSessionProperty -ID "{00000000-0000-0000-0000-000000000000}" -Property "Group"

 

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

 

EXAMPLE 2

PS C:\> Get-RDMSessionProperty "{00000000-0000-0000-0000-000000000000}" "MetaInformation" "OS"

 

Get the MetaInformation.OS value from the session with ID = "{00000000-0000-0000-0000-000000000000}".

 

EXAMPLE 3

PS C:\> $list = Get-RDMSession; Get-RDMSessionProperty -ID $list[1].ID -Path "MetaInformation" -Property "OS"

 

Retrieves the list of available sessions and then returns MetaInformation.OS value of the the second element in the list.

 

RELATED LINKS

Get-RDMSession

Set-RDMSessionProperty