Batch rename Session names of groups with Powershell

Batch rename Session names of groups with Powershell

avatar

Hi Devolutions,

Im trying to batch rename group folders with powershell, but when I look into the powershell properties. I see the Name is changed, but the rest is not, like
NameExpanded
NameFormatted
NameFull

The above propertys still have the old name, while Name is changed successfully.

Changing the name manually from within RDMS, all those properties are changed as well.

The powershell script for 1 entry right now is:
$list = Get-RDMSession | Where {$_.group -eq "PATH\GROUPNAME"}
$list.Name = "NEW NAME"
Set-RDM-Session $list

Is there a way to batch edit multiple group names?

All Comments (3)

avatar

Hi,

We are currently developing a PowerShell module. There will be a new cmdlet named Rename-RDMGroup in it that will do what you want to do.
Rename-RDMGroup -Session $session -NewGroupName "New Name"
This module should be available soon in the beta version.

Best regards,

Olivier Désalliers

avatar

Hi,

Just to be clear it will be available for RDM 12 Beta.

Best regards,

Olivier Désalliers

avatar

Thank you very much