I'm working on setting up RDM portable for a machine I'm not allowed to install RDM on. So far, following the directions this has worked, and I was able to export my data from my machine machine and import it to the portable version (running off a network share). I've downloaded the new RDM module and installed it, however, it does not seem to be compatible with RDM configured for portable mode.
When I try to run Get-RDMInstance I get an error 'Get-RMInstance: Object Reference is not set to an instance of an object'
This is running on Server 2016, RDM is 2021.2.26.0 x64
I'm running RDM from a network share configured for portable mode.
The existing connections are working correctly from that RDM instance.
Hello David,
You should be able to use the override commands to point to the correct location:
$override = Get-RDMPowerShellOverride $override.OptionFilePath = "pathtoRDM\RemoteDesktopManager.cfg" Set-RDMPowerShellOverride
And then restart your PowerShell session.
Best regards,
Richard Boisvert
Yep.. I did those exact steps when I set up the Portable install.
David F.
I did the override again, and I got back to the original set of errors I was seeing:
Warning: Unable to create database. Could not find a part of the path 'C:\Program Files\WindowsPowerShell\Modules\RemoteDesktopManager\2021.2.0.34\config\Connections.db Unable to load the SQLite datasource. The saved master key is invalid.
RDM is running in portable mode (the connections.db under the config directory does contain all my restored entries.)
David F.
P.s. when I go back and do a Get-RDMSession here, I get the same set of errors back and no actual sessions.
Hello,
Richard is on vacation as for the rest of my team. I asked him to check this thread on his return next week.
Sorry for the delay.
Best regards,
Jeff Dagenais
Hello David,
Just to confirm, is the path to the RDM Portable th correct one when running Get-RDMInstance?
Can you then run Get-RDMDatasource to confirm it can see the correct data source?
I have not seen the master key error previously, however. Once you confirm both, I will validate with the engineering team.
Best regards,
Richard Boisvert
My apologies for the delay. When I run the Get-RDMInstance it looks like it is pointing to my profile location (default). I opened RDM on another server, and this time it seems to have imported the connections to the default location instead of the portable location where it was supposed to.
I will try it again on the other server as soon as I can to see if I can identify what it says there.
Thanks again :-)
David F.