Powershell - How to configure new Datasource?

Resolved

Powershell - How to configure new Datasource?

avatar

Hello all,

We are using powershell module version 2022.3.1.8 (latest one for Powershell 5.1) against our Devolutions server version 2022.3..35.0 64bit

I am trying to establish a new connection to our deveolution server, using Application ID and secret.

Trying the following document - how-to-set-up-a-dvls-data-source-with-remote-desktop-manager-powershell-module.pdf (windows.net) I tried to run the commands:

$Datasource = New-RDMDataSource -DVLS -Server $DVLS -Name 'My DPS' -ScriptingTenantID $RDM.ScriptingTenantID -ScriptingApplicationPassword $ScriptingApplicationPassword

After which I am trying to set the datasource

$DataSource|Set-RDMDataSource |Update-RDMUI

Here I receive an error: [Error] The operation has timed out.

Then I tried

Set-RDMDatasourceProperty $datasource -Property 'ScriptingTenantID' -Value $RDM.ScriptingTenantID
Set-RDMDatasourceProperty $datasource -Property 'ScriptingApplicationPassword' -Value $ScriptingApplicationPassword

Then when I try
Set-RDMCurrentDataSource $datasource.ID
I receive the following error:

The remote name could not be resolved: 'the_domain_of_our_devolutions_server'.

The Datasource property IsConnected is False


So in other words, how can I configure the dataousrce (it already exists in the Devolutions server), using powershell?

The application ID and password that I use are correct and are working fine.

thank you in advance.

All Comments (3)

avatar

Hello,

It seems that the URL used for this DVLS data source cannot be resolved. Maybe that is the reason for the time-out error!

Could you please try to modify the Connection timeout property and see if that helps?
Set-RDMDatasourceProperty $datasource -Property 'Timeout' -Value 60

Best regards,

Érica Poirier

avatar

Good morning, Erica!
Thank you for your assistance.

It turned out that the particular server from which we are trying to access the RDM server has no network access to it.,
Please, consider that problem resolved.

thank you for your assistance

avatar

Hello Lubo,

Thank you for your feedback. That's excellent news to hear that the issue is now solved.

Best regards,

Érica Poirier