Online Help > PowerShell Scripting

Invoke-RDMParentSession

SYNOPSIS

Invoke a refactoring action to move a connection under a parent connection.

 

SYNTAX

Invoke-RDMParentSession -ParentSession [ParentSession] <PSConnection> -Refresh [Refresh] <SwitchParameter> -Session [Session] <PSConnection[]> -UseInheritedVPN [UseInheritedVPN] <SwitchParameter> -UseParentCredentials [UseParentCredentials] <SwitchParameter> [<CommonParameters>]

 

DESCRIPTION

Move a session under a parent session.

 

PARAMETERS

  -ParentSession <PSConnection>

(Required) PSConnection object, must be retrieved from Get-RDMSession or created via New-RDMSession that you will become the parent of the sessions.

 

  -Refresh <SwitchParameter>

Send refresh notification to Remote Desktop Manager application.

 

  -Session <PSConnection[]>

(Required) PSConnection object, must be retrieved from Get-RDMSession or created via New-RDMSession that will become a subconnection of the parent session.

 

  -UseInheritedVPN <SwitchParameter>

Use inherited VPN.

 

  -UseParentCredentials <SwitchParameter>

Use parent crendentials.

 

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

 

EXAMPLE 1

PS C:\> $list = Get-RDMSession; $parent = $list[0]; $child = $list[1]; Invoke-RDMParentSession -ParentSession $parent -Session $child -Refresh

 

Session in the variable $child becomes a subconnection of the session in the variable $parent and refresh the sessions.

 

RELATED LINKS

Invoke-RDMUnparentSession