Hi,
I want to run a specific session from the RDM Powershell Module. At first I get a specific session by running this:
$RDMSession=Get-RDMSession | Where-Object {$_.name -like "*NLAPT02*"}
To verify that the $RDMSession variable is the correct RDM Session I run this command:
$RDMSession | FT ID,Name,ConnectionType,Status ID Name ConnectionType Status -- ---- -------------- ------ 71047dab-7965-494f-9633-f1767ee73fbd NLAPT02 RDPConfigured
Now I'd like to open the session and I suspected that this should do the trick:
PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager> Open-RDMSession -id $RDMSession.ID PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager>
But it doesn't. I get no response back and instead the cursor returns to a new blank line in Powershell. There is also no RDP session started.
These are the results when I do some further checking:
PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager> Get-RDMOpenedSession PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager>
I am able to open the session in RDM GUI and while this session is still active I executed the following in PS:
PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager> Get-RDMOpenedSession PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager> PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager> Close-RDMSession -id $RDMSession.ID Waarschuwing Wil je echt de sessie 'NLAPT02' sluiten? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y PS Microsoft.PowerShell.Core\FileSystem::\\domain.local\dfs\Portable Apps\Remote Desktop Manager>
At the end the session is still active.
Hello,
Our apologies for the delay. I was able to replicate the issues with Open-RDMSession, Get-RDMOpenedSession and Close-RDMSession.
When I try to open a session, I receive the following and PS becomes unresponsive:
[Error] Received result for unknown call ID 0b8d4b3...
I will open a ticket with the engineering team, and we will keep you updated.
Best regards,
Richard Boisvert
Hi Richard,
No worries. I've been under the weather for a few days, so you'd better call it excellent timing.
I'm looking forward to your update.