Failed to call Microsoft MMC via AutoIt

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

Failed to call Microsoft MMC via AutoIt

L4 Transporter

Hi Everybody, now i'm building custom PSM plugin to call Microsoft MMC using AutoIT but stuck with some errors below

 

In command prompt with command

Field_Content_versions_oct20__068Ht00000RANn8IAH.pngwill result error Invalid number of command

Field_Content_versions_oct20__068Ht00000RANmtIAH.png 

with command

Field_Content_versions_oct20__068Ht00000RANlrIAH.pngwill result error Failed to load dll

Field_Content_versions_oct20__068Ht00000RANknIAH.png 

Please help guys

 

1 accepted solution

Accepted Solutions

L4 Transporter

Hi Everybody,

 

I did below step to solve my problem :

 

1. write the program path and the as per picture below

 

068Ht00000QvHhxIAF.jpg 

2. Create file SmartConsole.LoginParams and save in c:\cp_smartconsole_config\ :

<?xml version="1.0" encoding="utf-8"?>

<RemoteLaunchParemeters xmlns:xsi="http‌‌/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http‌‌/www.w3.org/2001/XMLSchema">

      <Username>cybrk</Username>

      <ServerIP>ip.address.server.tujuan</ServerIP>

      <DomainName></DomainName>

      <ReadOnly>False</ReadOnly>

      <CloudDemoMode>False</CloudDemoMode>

      <Password>the_password</Password>

</RemoteLaunchParemeters>

 

3. Create the executable of the au3 file. The executable created & au3 file script are put in the PSM Components folder

 

4. open SmartConsole using command see picture below

Field_Content_versions_oct20__068Ht00000QvHeJIAV.png 

5. Run 2 commands below, see picture below

Field_Content_versions_oct20__068Ht00000QvHnLIAV.pngField_Content_versions_oct20__068Ht00000QvHnaIAF.png 

Note : all steps executed in the PSM Server. The command written in the CMD executable using domain admin or a domain user is a member of Domain Admins group in AD

 

View solution in original post

12 REPLIES 12

L4 Transporter

Have you verified that the account has access to the directory?

Is Applocker Enforced or in Audit mode?

L7 Applicator

You're running from the command line - it will be expecting some input variables.

Have a look at:

Article Detail (force.com) if you want to test with live credentials,

my AppLocker configuration is Enforced for all rules

L4 Transporter

Hi Mal,

 

I follow https://community.cyberark.com/s/article/00004913 but when i step into no. 3 i can't run cmd as PSM Shadow User and i believe the username & password i typed for PSM Shadow User is correct. there is error this program is blocked by group policy. but when i try to run cmd with other user, this user can login succesfully

L7 Applicator

Applocker is probably blocking cmd.exe.

 

Assuming you're testing in a dev environment, either disable applocker while testing or add it to the list of excepted programs and re-run the applocker hardening script.

L4 Transporter

Hi Mal or Everybody,

 

I have added cmd.exe in PSMConfigureAppLocker.xml -> run PSMConfigureAppLocker.ps1 -> set AppLocker with Audit Mode -> reset PSM Shadow User password. the result is command prompt is able to be opened by PSM Shadow User but command executed still display 2 errors above

 

Please help guys

 

 

 

 

L4 Transporter

Hi,

 

1) You are not passing the expected parameters. Either you hardcode the values or put it in the xml file while you are testing

 

2) Open CMD as Admin

 

 

Thank you!

L4 Transporter

Hi,

 

1) You are not passing the expected parameters. Either you hardcode the values or put it in the xml file while you are testing

 

2) Open CMD as Admin

 

 

Thank you!

Hi Vamshi,

 

What parameter do you mean, any example ?

L1 Bithead

Hi,

 

How you are passing the Username and Password?

 

Thank you

Hi veera.v.manikonda

 

I write in PSMGenericClientDriver.xml file

 

Field_Content_versions_oct20__068Ht00000RAfyvIAD.pngnote : i create 2 PSM plugin, 1 is MMC 1 is checkpoint smart console. 10.0.7.187 is windows server target (not psm server). 10.0.7.237 is checkpoint device, smartconsole had been installed in psm server

 

L4 Transporter

Hi Everybody,

 

I did below step to solve my problem :

 

1. write the program path and the as per picture below

 

068Ht00000QvHhxIAF.jpg 

2. Create file SmartConsole.LoginParams and save in c:\cp_smartconsole_config\ :

<?xml version="1.0" encoding="utf-8"?>

<RemoteLaunchParemeters xmlns:xsi="http‌‌/www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http‌‌/www.w3.org/2001/XMLSchema">

      <Username>cybrk</Username>

      <ServerIP>ip.address.server.tujuan</ServerIP>

      <DomainName></DomainName>

      <ReadOnly>False</ReadOnly>

      <CloudDemoMode>False</CloudDemoMode>

      <Password>the_password</Password>

</RemoteLaunchParemeters>

 

3. Create the executable of the au3 file. The executable created & au3 file script are put in the PSM Components folder

 

4. open SmartConsole using command see picture below

Field_Content_versions_oct20__068Ht00000QvHeJIAV.png 

5. Run 2 commands below, see picture below

Field_Content_versions_oct20__068Ht00000QvHnLIAV.pngField_Content_versions_oct20__068Ht00000QvHnaIAF.png 

Note : all steps executed in the PSM Server. The command written in the CMD executable using domain admin or a domain user is a member of Domain Admins group in AD

 

  • 1 accepted solution
  • 426 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!