Datasource Management Cmdlets Not Working

Implemented

Datasource Management Cmdlets Not Working

avatar

Hey everyone,

how can I add a datasource to Remote Desktop Manager via PowerShell?
I am trying it the following way:

$nyDatasource = New-RDMDataSource -SQLServer -Database "RemoteDesktopManager" -Name "test" -Server "testserver\RDM" -IntegratedSecurity
Set-RDMDataSource -DataSource $nyDatasource
Set-RDMCurrentDataSource -DataSource $nyDatasource

If I then issue another

Get-RDMDatasource

the datasource is displayed.
However, when I close PowerShell and reopen it and then use

Get-RDMDatasource

the datsource is gone.
This also happens when I open RDM. The datasource is not there.

Am I missing something or is there a bug?

Cheers,
Mark

PS: Where can I find the documentation for these Cmdlets anyway?

All Comments (4)

avatar

I've tried around a little bit more.and found out that this only happens when there is no %LOCALAPPDATA%\Devolutions\Remote Desktop Manager folder. When I open RDM once and then close it again, the Cmdlets work as expected.
What would I have to do to add a datasource to a fresh configuration?

avatar

Hi

You are using it correctly, PowerShell should be able to operate without RDM being installed.
That being said, I was able to produce your issue on my end and I know what is happening.
I'll work on a fix.

Regards

Jonathan Lafontaine

avatar

Hi, me again.

I fix for your issue will be available in the next release.
Your data source will now save and load correctly without using RDM first.

Regards

Jonathan Lafontaine

avatar

Great work.
Thanks, Jonathan.

Cheers,
Mark