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
Do you mean that the OpenVPN path is selected? I suspect that the Power Shell current directory is different than RDM.
Regards
David Hervieux
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
Hello,
Is RDM installed in C:\Program Files (x86)\Devolutions\Remote Desktop Manager or in another folder?
Best regards,
Jeff Dagenais
Hi,
yes, RDM is installed to the "C:\Program Files (x86)\Devolutions\Remote Desktop Manager" folder.
Best regards
Hello,
Are you executing PowerShell from RDM?
Best regards,
Jeff Dagenais
Hi,
no i tried to automated something and therefore I created a script and loaded the PowerShell module.
Best Regards
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
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.
Best regards,
Érica Poirier