Hello,
As you may see in the attached mp4 (part of which is useless because I choose to capture only the application which turns to not capture menus or child windows :( ), There is one session (group) named "Production" that I can't delete.
I tried deleting it from the UI, I tried deleting it with PowerShell, I disabled my cache, I cleared my cache, I made sure we can't work offline...
The session remains whatever I do.
Here is the PS I wrote to document the problem:
$DataSources = Get-RDMDataSource -ErrorAction Stop| Where Name -eq "C-Cast"
Set-RDMDataSource -DataSource $DataSources[0] -ErrorAction Stop;
$oRDMSessions = @(Get-RDMSession)
$oRDMSessions.Count
foreach ($Session in $oRDMSessions) { Remove-RDMSession -ID $Session.id }
Update-RDMUI;
$oPostDeleteRDMSessions = @(Get-RDMSession)
$oPostDeleteRDMSessions.Count
The count after the delete remains 1.
Where am I wrong ?
The video is hosted here: https://we.tl/lswvcy3nGv
Thank you,
Pierre
one session cannot be deleted.mp4
Note: I added the -Force to the Remove-RDMSession and that solved my issue.
I still do not understand why this was needed as hundred of other sessions could be deleted without issue.
Hello,
If you ever run into that issue again, another cause may be that the folder is virtual.
Please consult http://help.remotedesktopmanager.com/howto_folderstructure.htm for details on this.
Maybe in one of your manipulations you modified a property of the virtual folder which turned it into a physical folder, which then allowed the deletion.
Best regards,
Maurice
Hello Maurice,
I thought about Virtual Folders but this folder would not display if there is no more other session existing, right ?
I mean: If you look at the video, the count of session was 1. I then deleted all session (which mean that one). The delete message asked specifically if I wanted to delete the "Production" session (folder/group). I said yes.
After that, the session count was still 1.
I posted the message in the forum.
Then the only thing I did was to replay my script with "-Force" option at the Remove-RDMSession.
That deleted the Production session.
Strange.
Pierre