I am using RDM Free version. I am trying to access a session using the powershell module, but I am getting "connection not found" when I run get-rdmsession :-
PS C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free > Get-RDMSession
Get-RDMSession : Connection not found.
At line:1 char:1
+ Get-RDMSession
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.GetRDMSessionCommand
This is my current data source :-
PS C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free > Get-RDMCurrentDataSource ID : fb7d07f3-14b7-4ab5-a416-ff234616f28e IsConnected : True IsOffline : False Name : Local Data Source Type : SQLite
So, am I missing something, or is it not possible to do this with RDM Free ??
Thanks
Kevin Heap.
Hello Kevin,
The Entreprise version is required to use the RDM PowerShell module. Let us know if you would like a trial!
Best regards,
Richard Boisvert
Hi Kevin,
Since version 2021.2, the power shell module can be used without an enterprise license.
What is happening here is the power shell module isn't loading the right config file.
This is something that will be addressed in the next major update but for now, you can work around this issue with an override.
In RDM, go to File -> Options. In the advanced section, copy the config file location.
In a PowerShell terminal, use these commands to setup the override.
$ov = Get-RDMPowerShellOverride $ov.OptionFilePath = "the/path/you/copied/RemoteDesktopManagerFree.cfg" Set-RDMPowerShellOverride
Close you PowerShell terminal and start a new one.
Get-RDMSession should now use the right data source and return your sessions.
Let me know if this helps.
Regards
Jonathan Lafontaine