Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using variables in RDP programs
#1
Hi,
I tried to use variables, when starting a program defined in the rdp section, using ASG-RD 2020 Patch7 (13.0.6985.1)
I could replace some values with variables, but not all.
I'm using a program psm to connect via CyberArk PSM to the destination server

Example:

Folder
Name: contoso.com

Connection (within Folder "contoso.com")
Name: server1.contoso.com
Setting RDP\Programs\Execution path: psm /u myAccount@contoso.com /a server1.contoso.com /c PSM-RDP
Credentials: myAccount

I could replace:
myAccount with %username% (Taken from the credentials)
server1.contoso.com with %name% (Take from the name of the connection)

I would like to replace the domain of the logon account (contoso.com) with the name of the containing folder.
I tried the variable %ConnectionFolderName%, which was introduced with ASG-RD 2020
From the Online-Help: "Folder name of the folder where the connection object is located."

Did I missunderstand something? Or is there another variable for this?

And an one more question: Is there a way to check, how ASG-RD resolved a variable (which value it used)

Thanks for helping

Chris


Attached Files Thumbnail(s)
   
Reply
#2
Hi,

I think the problem is that the variable could be only used in a credential object / connect-task. It's not a "global" variable as you used it in an external application.
As an easy way to see how a variable is resolved is to just create for example notepad as external app and use the variables as "Arguments" for example "%MyVariable%.txt". On starting notepad as external app it asks you to create the text that contains the resolved variable(s) or not. This way you see if the variable will be resolved.
best regards,
Michael -- michael.scholz@asg.com --
Reply




Users browsing this thread: 1 Guest(s)