Trying to run a script on a connection with Powershell but it fails
Hi There,
New to RDM and it's PS module so please forgive my initial ignorance.
I have the RDM Client: 2022.3.35.0 64-bit
I have the PS module 'Devolutions.Server': 2022.3.13.0
I want to be able to run a PS script that uses the current connection name to query another system to retrieve the correct IP address of that server I want to RDP into (DNS is not resolvable).
So the script would execute before the connection is made, retrieves the IP address, updates the connection and then starts the RDP session to the server/PC in question.
Any help on this is highly appreciated!
Regards,
Steven
Hello,
Thank you for contacting us on that matter.
To update the IP address while opening an RDP entry, it is possible to do it with a script that is being imported in the Before Open Event of the RDP entry. The script you will import must contains a function, in the following sample RetrieveIP, that will return the IP address of the remote server you want to connect to.

Let us know if that's what you want to achieve.
Best regards,
Érica Poirier