Online Help > PowerShell Scripting

Set-RDMSessionAttachment

SYNOPSIS

Save/set the session.

 

SYNTAX

Set-RDMSessionAttachment -Attachment [Attachment] <PSConnectionAttachment[]> -Refresh [Refresh] <SwitchParameter> [<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

  -Attachment <PSConnectionAttachment[]>

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

 

  -Refresh <SwitchParameter>

Send refresh notification to Remote Desktop Manager application.

 

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

 

RELATED LINKS