Adding Tags/Keywords Via Powershell

Adding Tags/Keywords Via Powershell

avatar

Using
Powershell I am would like to do a bulk update of RMD of the Tag/Keyword list
for my sessions. Looking at everything it looks like I should just be able to
do the following.

# request all session items

$SessionListAll = Get-RDMSession


# filter for RDP connection

$SessionListRDP = $SessionListAll | Where-Object {$_.connectiontype -eq 'rdpconfigured'}


# loop through list and update each with tag overwriting old tag info

ForEach($Session in $SessionListRDP) {

$Session.MetaInformation.Keywords = "xxxx 'yyy zzz' "

Set-RDMSession $Session

}


I get the following error.
Set-RDMSession : Connection has invalid group specified.

If I understand correctly, based on the forum posts the problem could be that the group value doesn't exist (defined as folder in the gui). The value in $Session.Group appears to match the folder value for the session.

We are running version 2020.3.27.0 of RDM EE
The powershell module is remotedesktopmanager.powershell v1.0

All Comments (1)

avatar

Hello,

Thank you for reporting this problem.

Can you check, in the ForEach loop, by adding the following commands before the Set-RDMSession, which entry is causing you this problem?

$folder = $Session.Group
$name = $Session.Name
Write-Host $name $folder


Is one of these folders possible to be identified as a virtual folder? When you edit the folder, you should see it on the status bar of the folder's properties dialog.

Best regards,

Érica Poirier