Forum / Remote Desktop Manager - PowerShell Repository

Change Session names with powershell

  • Create an Issue
  • Cancel

how can we manipulate commands to edit session names that are nested 3 or 4 folders deep? i can figure out the foreach to get all the sessions and folders, but what command will edit the session name?

Clock3 yrs

Hello,

You can use one of these two methods to change the name of a session.

$session.Name = "NewName"
Set-RDMSession $session

For more information about the Set-RDMSession cmdlet, please consult this online help page.
https://help.remotedesktopmanager.com/set-rdmsession.htm

Or

Set-RDMSessionProperty -ID $session.ID -Property "Name" -Value "NewName" -Refresh

For more information about the Set-RDMSessionProperty cmdlet, please consult this online help page.
https://help.remotedesktopmanager.com/set-rdmsessionproperty.htm

Best regards,



Érica Poirier

signaturesignature

Clock3 yrs

Thank you!

Clock3 yrs