Open Sessions With Changed Installation Path

Resolved

Open Sessions With Changed Installation Path

avatar


Hi,

when executing the powershell command "Open-RDMSession" for programs with a different installation path, I always get the prompt that you can see on the screenshot attached.

The session is working from within RDM but when executing the PowerShell command, I always get this prompt (even if the path was selected and the command was executed again).

Do I have any options to change the path permanently for the PowerShell command?


Best Regards

open-rdm-session.png

All Comments (19)

avatar

Do you mean that the OpenVPN path is selected? I suspect that the Power Shell current directory is different than RDM.

Regards

David Hervieux

avatar


Hi,

yes our OpenVPN path is "C:\Program Files\OpenVPN" and not "C:\Program Files(x86)\OpenVPN" (default). Within RDM, I changed this path. And the session is working without any issues. But when launching via PowerShell RDM tries to use the default path.

Could you explain what you mean with "the Power Shell current directory is different than RDM"... i tried to change the directory to "C:\Program Files (x86)\Devolutions\Remote Desktop Manager" and execute the Open-RDMSession afterwards, but that did not change anything.


Best Regards

avatar

Hello,

Is RDM installed in C:\Program Files (x86)\Devolutions\Remote Desktop Manager or in another folder?


Best regards,

Jeff Dagenais

avatar


Hi,


yes, RDM is installed to the "C:\Program Files (x86)\Devolutions\Remote Desktop Manager" folder.


Best regards

avatar

Hello,

Are you executing PowerShell from RDM?

Best regards,

Jeff Dagenais

avatar


Hi,

no i tried to automated something and therefore I created a script and loaded the PowerShell module.

Best Regards

avatar

Hello,

Thank you for the information.

I've tried to reproduce your issue without success.

What RDM version are you using and what data source type are you connected?

Best regards,

Érica Poirier

avatar

Hello,

Is it possible that the script is running in a different user context?

Because the alternate installation path value is saved in the RemoteDesktopManager.cfg file located in %localappdata%\Devolutions\RemoteDesktopManager, if you are running the PowerShell script in a different user context, then the OpenVPN alternate installation path will not be found.

A workaround would be to set the working folder before loading the RDM PowerShell module. That could help to temporary resolve your issue.
https://docs.microsoft.com/en-us/powershell/scripting/samples/managing-current-location?view=powershell-7

Best regards,

Érica Poirier

avatar


Hi,

Data source: MySQL
RDM Version: 2019.2.22.0 Enterprise


thanks for the fast support. I've analyzed the issue further and found out that the problem seems to be something different:

- When launching the session from RDM, the session works without changing the default path when OpenVPN is installed under "C:\Program Files\OpenVPN". Even if NO custom installation path is specificed in the config file.


- When launching the session from PowerShell, RDM tries to load the OpenVPN binary from "C:\Program Files(x86)\OpenVPN". If OpenVPN is installed to "C:\Program Files\OpenVPN", I get a prompt to select the path.

- If I specify the 64 bit path in the config file, I can also open the session via PowerShell without getting the prompt.


<CustomInstallationPath>
<Name>OpenVPN GUI</Name>
<Path>C:\Program Files\OpenVPN\bin</Path>
</CustomInstallationPath>


So from my point of view, it looks like if the 64bit path is a "default path" when launching the session from RDM but not when launching from PowerShell?! Should that be the standard behaviour?


I've attached the PowerShell commands I used to open the session.

Best Regards

RDM-OpenSession-PowerShell.PNG

avatar


Hello,

Thank you for the information. Let me check with the engineering team and I will keep you posted.

Best regards,

Érica Poirier

avatar

Hello,

Could you please try to launch the session using the Command line in the Advanced tab to see if you will get the same behaviour?
For more information about the Command line, please see this online help page.
https://help.remotedesktopmanager.com/entrytypes_advanced.htm#ids-(used-in-a-command-line-or-in-powershell-scripts)



Best regards,

Érica Poirier

avatar


Hi,

when trying to launch the session using the command line in the Advanced tab, i have a different behavior.

The session is established as expected, RDM does not ask for the OpenVPN path.


Best Regards

avatar

Hello,

Thank you for the information.

We will try to reproduce this issue internally. Could you please provide a sample session with your OpenVPN configuration in order to help us to reproce that behaviour? You can post it here or send it to me in a private message.

Best regards,

Érica Poirier

avatar


Hi,

could you be so kind and explain what the sample session should contain?

Does the session also need to contain user credentials, e.g. do you need to connect to a real server?


BR

avatar


Hello,

Please send me an entry that contains the same configuration as your other entries without any sensitive information. I will fill in the information with ours own server and credentials.

Best regards,

Érica Poirier

avatar


Hi,

please find attached the session I had problems with. I exported the session from RDM and did not tick "include credentials".

If you need more than that, just let me know.



Best Regards

TestSession.rdm

avatar


Hello,

Thank you for your session. We will investigate and will soon get back to you about it.

Best regards,

Érica Poirier

avatar

Hello,

We are unable to reproduce the issue internally. Could you please send us an email to ticket@devolutions.net with this topic as a reference? We will send you our online reservation system to book a session.

Best regards,

Érica Poirier

avatar

Hi,

We have been able to reproduce the issue internal, only reproducible when RDM is closed from the look of it.

Using this method, I was able to see that my Masterkey was prompted that lock my DOD vault Before even seeing the application splashscreen.

So my theory is that the command is sent even before loading the RDM configuration file thus behaving in this fashion.

Thanks for reporting this. We'll work on it.

Best Regards,

Alexandre Roy