Skip to main content
Answer

WinSCP as application in Password safe

  • October 14, 2025
  • 3 replies
  • 84 views

Forum|alt.badge.img+1

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

Best answer by jchandler

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

3 replies

  • BeyondTrust Employee
  • Answer
  • October 16, 2025

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


Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • October 16, 2025

thank you so much .. this should help


Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • October 20, 2025

Hi jchandler 

For Winscp, the session is now getting established  with INI file you provided. Now when session is established the WINSCP is launched from RDS server. In this case, how can user transfer which is on his machine to target system? what approach we need to follow here so that user can transfer file from his machine to target Linux system and vice-versa ?

Regards,

Imran Aliyani