Force powershell script to pass through RDP Gateway session.

Force powershell script to pass through RDP Gateway session.

avatar
kow1969
Disabled

Hello All
I am running my RDM over a VPN to our cloud devices. I am able to access those devices through an RDP session with our RDP Gateway successfully. Is there any means to force a Powershell script to use the the same RDP Gateway session? This is the message we see executing a Remote Powershell entry in RDM
"Connecting to remote server <FQDN of Device> failed with the following error message : The WinRM client cannot process the request because the server name cannot be resolved."
Thank you

All Comments (5)

avatar

Hello,

Can this be achieved outside RDM?
I understand that the server name cannot be resolved because it doe not attempt a connection to the RDP Gateway prior to open the PS Session.
The thing here, is that RDP and Powershell (Enter-PSSession) are to totally different protocole and unfortunately, Powershell cannot use the RDP Gateway to "Jump" on a remote pssession...

However, and as a workaround, you could be using our RDM Agent (to "Jump" on the endpoint) on the remote computer to run scripts "locally", after a connection. Obviously this implies that Windows GUI will be launched.

See the overview of RDM jump here: https://help.remotedesktopmanager.com/index.html?overview_whatisrdmjump.htm
And more specific information to st it up here : https://help.remotedesktopmanager.com/index.html?kb_configureremotedesktopmanagerjump.htm

You will need to tick the "Allow Run via Agent" checkbox in the "more" Section of your macro/script/tool, and then use a slightly different path to launch it :
Right Click on you RDP session -> Execute Script Via Agent... Then select Scripts/Tools tab -> Select your Macro/script/tools Entry and click Execute.
This should open the RDP connection, the agent will catch the command, a RDM instance will be launched on the remote host with and ultimately, the script will run. Of course this will require a Powershell (Local) entry instead of Powershell (remote)

Let me know if this helps!


Best regards,

Alex Belisle

avatar


Hello Alex

Thanks for getting back to me. I thought this would be the case. I did review the RDM Agent suggestions but noticed that the RDM Agent is not viewable in my RDM version from More Tools option. In fact I had to manually install the Agent on my PC, https://forum.devolutions.net/topic29924-rdm-agent-issue.aspx

The RDM is running on my PC but I still do not have the option to select it from More Tools




Nor in the RDP Properties



RDM Version



Does the Jump option only appear when the remote server has RDM installed?

avatar

Hello,

Thanks for your quick response. Unfortunately, the Agent is not available in RDM Free. If you'd like a trial of RDM Enterprise that will include it, simply contact the sales (sales@devolutions.net) they will gladly provide it to you.

As an alternative option, I've seen some setups using PSSession over SSL, I unfortunately cannot say if'this would apply to your enviroment...
Nevertheless, I hope this helps, please let us know!


Best regards,

Alex Belisle

avatar

Hi Alex

Thank you for all the tips. My powershell scripts are configured with SSL, unfortunately no luck. I will contact sales about your enterprise trial of RDM.

Thank you

Joe

avatar

Hello,

Thanks for your feedback, Sorry I cannot be of more help.

Have a great one.


Best regards,

Alex Belisle