AutoIt Script For Launching Batch File

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

AutoIt Script For Launching Batch File

L4 Transporter

Dear All,

 

Can someone help me with the script for launching batch file? I tried with some of the script replacing the path, launching method etc. of ASDM dispatcher. However, it dint work.

 

I dont want to send any username, password or IP address. Just want to launch a batch file and start recording the session.

 

Thanks in advance!

12 REPLIES 12

L6 Presenter

Simple cmdline parameters should work, try modifying the sql plus or ssms connection components, if you have applocker and hardening done then remember to make relevant applocker rules for the bat file

L4 Transporter

Simple cmdline parameters should work, try modifying the sql plus or ssms connection components, if you have applocker and hardening done then remember to make relevant applocker rules for the bat file

L4 Transporter

@Ankush Agarwal​  - Thank you for your reply!

 

As you suggested, tried with sql Plus components, unfortunately, its not working. Have created one allow rule for filename.bat file in the app locker, no luck!

Getting below logs -

 

[08/16/20 | 10:58:34] | :Trace: | New command line: [C:\Program Files (x86)\CyberArk\PSM\Components\Hplus\hPlus.bat]

[08/16/20 | 10:58:34] | :Trace: | Log Mask: [7]

[08/16/20 | 10:58:34] | :Trace: | Sleeping for 100 milliseconds before concealing...

[08/16/20 | 10:58:34] | :Trace: | Calling HideCommandLine() with PID=7128

[08/16/20 | 10:58:34] | :Trace: | HideCommandLine() ended succesfully.

 

 

L3 Networker

@Krishndev Vishwakarma​  Hi Krish, i have similar requirement, would you mind sharing what needs to be taken care while duplicating the connection component ? like what fields are to be updated ?

L3 Networker

@Ankush Agarwal​ @Krishndev Vishwakarma​  Hi Ankush, Krish, can you help me with the connection component parameters ?

 

L4 Transporter

Hi @BR .​ Sorry for the delayed response.

 

Am still looking for the solution. I tried with above mentioned connection components but no luck. With regards to your query, we can copy the whole connection component and change the respective path of execution i.e. the path of your abc.bat file instead of SSMS.exe etc.

 

 

@Krishndev Vishwakarma​ Thank you for your response Krish, does the abc.bat file needs to be in Components folder of PSM Server ? can you share how the entry for bat file looks in applocker file

L4 Transporter

Yes, it will be good if you keep in that folder, it avoids any permission issue as placing it in some other repo you might have to set some additional permission.

L3 Networker

@Krishndev Vishwakarma​ Thanks Krish, when i click on connect, PSM window opens and i see cmd window at background and the PSM session is getting closed

L4 Transporter

Thats the issue am also facing 😞

 

Still couldn't fix it. I'll share if can fix it in any way.

 

@Krishndev Vishwakarma​  Thanks Krish

L4 Transporter

Hello,

 

Did you get any solution for this @BR .​ ? am still looking for it. Thanks!

  • 919 Views
  • 12 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!