Forum / Remote Desktop Manager - Macro/Script/Tools

WARNING: Connection not found.

  • Create an Issue
  • Cancel

Hi

I try to delete all of the sessions with the following script:
Get-RDMSession | select ID | ForEach-Object {Remove-RDMSession -ID $_.ID -Refresh -Force}

But the script does not delete all sessions at once. It startet to delete some folders and sessions, but there are still plenty of folders left. I am getting the following warning:
WARNING: Connection not found.

So what's broken?

Greets

Clock2 yrs

Hello,

We have been able to reproduce your issue and a ticket has been submitted to our engineering department.

Best regards,



Érica Poirier

signaturesignature

Clock2 yrs

Hi,

We added a parameter named Session that takes an array of PSConnection. Which mean that you can simply call Remove-RDMSession to remove all the sessions in the current data source:

Remove-RDMSession -Session (Get-RDMSession) -Refresh -Force

The Remove-RDMSession with the ID parameter has also been fixed.

It will be available in the next RDM version.

Best regards,

Olivier Désalliers

signaturesignature

Clock2 yrs