Remote Powershell cmdlet execution

Remote Powershell cmdlet execution

avatar
ket
Disabled

Hi, I'm having issue trying to figure out how I can authenticate with the application using PS without interact with the login interface.

What I am trying to achieve is to delete inactive/deteled AD users from RDM database and this is part of our powershell leaver process.

What I have tried so far is below:

1)
Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"

Get-RDMSession - (This prompts me the application login interface, insert admin username and password)

2)
Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"
$pass = ConvertTo-SecureString "mypassword" -AsPlainText -Force

Set-RDMCurrentDataSource -ID x-x-x-x-x -Username Administrator -Password $pass
Update-RDMUI
Get-RDMSession


In second scenario after I have used Set-RDMCurrentDataSource and then perform Get-RDMSession the cmdlet returns nothing.
When I use : Get-RDMUser and it returns WARNING: Your connection is not ready

Thanks
Ket

All Comments (1)

avatar

Hello,

We are unable to reproduce this issue. In order to help you troubleshooting this issue, here are some questions about your RDM configuration.

1- What RDM version are you using?

2- What data source type are you connected to? If it's Devolutions Password Server, what version are you using?

3- Does the data source you want to connect to is the only data source configured in your RDM?

Best regards,

Érica Poirier