Online Help > PowerShell Scripting

Set-RDMSession

SYNOPSIS

Save/set the session.

 

SYNTAX

Set-RDMSession -Refresh [Refresh] <SwitchParameter> -Session [Session] <PSConnection[]> [<CommonParameters>]

 

DESCRIPTION

Save/set the session. Session must be first fetch via Session property of the Get-RDM-Session cmdlet or via the New-RDMSession result.

 

PARAMETERS

  -Refresh <SwitchParameter>

Send refresh notification to Remote Desktop Manager application.

 

  -Session <PSConnection[]>

(Required) PSSession object, must be retrieved from Get-RDMSession or created via New-RDMSession.

 

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

 

EXAMPLE 1

PS C:\> $list = Get-RDMSession; $list[1].Name = "New Name";Set-RDMSession $list[1]

 

Retrieves the list of available sessions, modify the name of the second session, update the session.

 

EXAMPLE 2

PS C:\> $session = New-RDMSession -Name "New Session" -Host "myServer" -Kind "RDPConfigured";Set-RDMSession $session

 

Create & save new session.

 

RELATED LINKS

Get-RDMDataSource

Get-RDMSession

New-RDMSession

Remove-RDMSession

Set-RDMDataSource