Implemented

Accessing PAM module

avatar

Hi

I am new to the Devolution server and am trying to use the Devolutions.Powershell 2023.1.0.8 to do things in PAM.

I get connected to the datasorce and gets sessions but when am I trying to interact with the

PAM module I must establish a session to the devolution server it seems (New-DSSession)

My question is can’t I get this information I need to connect to the devolution server from the datasource I am using?

Client is running on Windows 11.

DVLS version 2023.1.6.0

Authenticate with Microsoft user

All Comments (6)

avatar

Hello,

Sadly it's not possible to get the DVLS URL or even the username from the current data source properties.

The Method 2 from the following article explains how you can handle login with PowerShell using an application key with the New-DSSession cmdlet.
https://docs.devolutions.net/kb/devolutions-server/how-to-articles/powershell-connectivity/#method-2%3A-using-devolutions-server-cmdlets

Let us know if that helps.

Best regards,

Érica Poirier

avatar

Hello,

About getting the information from the data source, it's possible using the following method. Please note that the property names are case sensitive and that you must provide the password in the script.

$ds = Get-RDMDataSource -Name 'DVLS'
$server = Get-RDMDatasourceProperty $ds -Property Server
$username = Get-RDMDatasourceProperty $ds -Property "UserName"
$password = ConvertTo-SecureString 'your password here' -AsPlainText -Force;
New-DSSession -BaseURI $server -Credential (New-Object System.Management.Automation.PSCredential ($username, $password))


I'm sorry that I provided an incorrect information about it.

Best regards,

Érica Poirier

avatar

I did manage to connect when I used a Devolution server user.

Is it possible to use a Microsoft 365 user to access the Devolution server by PowerShell?

avatar

Hello,

Thank you for your feedback.

At the moment, accessing the DVLS by PowerShell using an Microsoft account is not supported.

I will ask our engineering team if there is something they can do about it and will keep you posted.

Thank you for your patience.

Best regards,

Érica Poirier

avatar

Hello,

A ticket has been submitted to our engineering team to add the possibility to connect to DVLS using an Azure AD account with the New-DSSession cmdlet.

Once it will be possible, we will post it here.

Thank you for your patience.

Best regards,

Érica Poirier

avatar

Hi,

The latest version (2023.1.0.9) can now connect to DVLS using O365.
You can now use the UseOAuth switch to activate web browser autentication and use Office365 as the authentication method.
New-DSSession -BaseUri "dvls url" -UseOAuth

Regards.

Jonathan Lafontaine