Users

All Posts (3)

avatar

mats01

Disabled

Unable to schedule powershell task against Devolutions Servers

avatar
avatar
avatar
avatar
mats01
Disabled

Thanks Erica! Starting RDM as the runas account and making sure everything was in order there did the trick!

Unable to schedule powershell task against Devolutions Servers

avatar
avatar
avatar
avatar
mats01
Disabled

Hi

When running it manually it does not generate any popups. But the same script does when running it via task scheduler.

Any ideas? How is the syntax supposed to be? Is mine correct? Any other way of communicating with the devolutions server to populate it with servers?

Regards Mats

Unable to schedule powershell task against Devolutions Servers

avatar
avatar
avatar
avatar
mats01
Disabled

Hi

When trying to logon to Devolutions Server through my powershell-script via task scheduler I am not able to do so. I have tried running both elevated and non-elevated and my commands are like so:

New-RDMDataSource -DVLS -Server "http://server/dvls" -Name $dsname -SetDatasource

$datasource = Get-RDMDataSource -Name $dsname

$secpasswd = ConvertTo-SecureString "xxxxxxxx" -AsPlainText -Force

Set-RDMCurrentDataSource -DataSource $datasource -Username "user" -Password $secpasswd

I have also trying just getting the datasource if it exists.

The error I encounter is this:

WARNING: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Apperantly there is a prompt asking for username and password, I have found no way to avoid it.

Please advise! :)

1 - 3 of 3 items