How to change custom variable within RDM

How to change custom variable within RDM

avatar

I have a custom variable $VPNCONNECTION$ that is set to a value of 1 defined in options > custom variables
I want to connect a VPN then check the value of the $VPNCONNECTION$ custom variable.
If it is 1 change it to 2, if it is 2 change it to 1.
I am not sure how to do this within RDM using after connect of the vpn options.

Can anyone assist please?

All Comments (5)

avatar

Hi,
We don't have way to modify a current value in script after n execution. I will add a feature request for that and add some scripting functionality with the connection itself as a target.

Regards

David Hervieux

avatar

Use the File - Options - General - Custom Variables to manage your own variables.
SETTINGS>CUSTOM VARIABLES
The custom variables option of free ps plus accounts has been implemented to customize your own variables in the application.
Click on New to create a new variable to use. Enter the name and the value of the variable.

avatar

want help urgently

avatar

Hello Bazinga,

Have you any questions regarding this topic?

You could also open a direct ticket by sending an email at ticket@devolutions.net

Best regards,

David Grandolfo

avatar

The Batch Actions take into consideration a fast method to change various meetings on the double, yet inside Remote Desktop Manager itself.

To have the option to make your PowerShell content, you would require the name of the field(s) that you might want to refresh. To recover the specific name of the field, right-click on your meeting and select Clipboard – Copy. You would then be able to glue the data in a content tool to recover the name of the field(s) that you might want to change through the Custom PowerShell Command.