Skip to main content

Hi All,

I want to onboard WinSCP as an application in Beyondtrust password safe. If any one has worked on similar task or onboarded WinSCP as application, can you please  help me here?

I want to understand how will the .ini file be created for it . I understand hostname, username and password I can pass it through Application configuration from PAM , But unable to understand how can I render those values on application launch.

Awaiting reply . thanks in advance.

 

Regards,

Imran Aliyani

Hello ​@immi563 

I happen to have an ini file that works with WinScp. Have a look.

 

[General]
EnableLogging=0
LogMethod=1
RunApp="C:\Program Files (x86)\WinSCP\WinSCP.exe"
AppWindowTitle="Login"

[TaskSequence1]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TEdit; INSTANCE:2]"
SendKeys=%host%

[TaskSequence2]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TEdit; INSTANCE:1]"
SendKeys=%username%

[TaskSequence3]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TPasswordEdit; INSTANCE:1]"
SendKeys=%password%

[TaskSequence4]
AppWindowTitle="Login"
AppWindowControlID="[CLASS:TButton; INSTANCE:5"
Sendkeys={enter}
;AppWindowControlClick=1

 

You can find our doc here on the PS Automate utility.

PS_Automate Utility | PS

In order to get the AppWindControlID I used the AutoIt utility Au3Info.exe that ships with AutoIT. 

You can find details on it here.

AutoIt Window Info Tool

Drag the target over the control you want to use and copy the Advanced (Class) details.

In the last step the click did not work so I used the SendKeys to send Enter.

Hope this helps,

 

Regards,

John


thank you so much .. this should help