RDM Powershell 'Your connection is not ready'

RDM Powershell 'Your connection is not ready'

avatar

Hello,

For some scripting related work I would like to connect to RDM with a powershell session.

In the past this was done by importing the module from the application directory but I saw that the module was now available in the repository.

With the command "Install-Module -Name RemoteDesktopManager -RequiredVersion 2021.2.0.14" I installed the module.

To set the currentdatasource I first entered "Get-RDMDatasource", then I copy the ID and enter the "Set-RDMCurrentDatasource *ID*" cmdlet.

Then I want to issue a 'Get-RDMVault' but Powershell keeps giving me the error "WARNING: Your connection is not ready".

Even when I use Update-RDMUI is still cannot connect.

Do you know how to solve this?

All Comments (6)

avatar

Hi,

With the move to PowerShell 7.x and dotnet core, we unfortunately lost some UI features.

One of them is DVLS embedded web authentication.

To counter that, we added credentials for scripting purpose that can be used along side the credentials used by RDM.

If your RDM version is up to date, you can find a Scripting tab in your DVLS data source settings where you can enter the DVLS application ID and password.

Otherwise, you can enter this information from a PowerShell terminal like so

$ds = Get-RDMDataSource -Name "x-DPS-MS"
Set-RDMDatasourceProperty $ds -Property "ScriptingTenantID" -Value "tenantidhere"
Set-RDMDatasourceProperty $ds -Property "ScriptingApplicationPassword" -Value "password"
Set-RDMDataSource $ds
Set-RDMCurrentDataSource $ds

The application ID and password can be created from the DVLS web interface, in the Administration -> Application section.

Regards

Jonathan Lafontaine