Jump to content

How do I use the ESMC API Through Powershell


Recommended Posts

I'm trying to find information on how to use the ESMC API through Powershell. The documentation about the API seems to be severly out-of-date.

Does anyone have any examples on how to work the API with Powershell?

The goal is to run commands against the API from the clients, through our RMM using a powershell script.

Link to comment
Share on other sites

  • ESET Moderators

Hello @Casper Stekelenburg,

there is an example in C++, but generally you just need to init the ESMC API libraries and that send the messages in JSON format.

What RMM do you use, if I may ask? Some of them are integrated and supported, see https://help.eset.com/eea/7/en-US/idh_config_ermm.html 

Regards, Peter

Link to comment
Share on other sites

1 hour ago, Peter Randziak said:

Hello @Casper Stekelenburg,

there is an example in C++, but generally you just need to init the ESMC API libraries and that send the messages in JSON format.

What RMM do you use, if I may ask? Some of them are integrated and supported, see https://help.eset.com/eea/7/en-US/idh_config_ermm.html 

Regards, Peter

Hello @Peter Randziak We use N-Central, I have no knowledge of C++, but do know my way with powershell. So that is a bit of an issue for me. The documentation is for version 6.x not 7.x, also these days everybody uses powershell for everything, so why is ESET so far behind on this?

I am aware of the ermm tooling. But it is (too) limited.

EDIT: I did some testing, but as I said I have no knowledge of C++ so do you have an example that I can use in powershell?

Edited by Casper Stekelenburg
Link to comment
Share on other sites

I'm looking for something similar, although it doesn't have to be written in PowerShell.  I'd take current examples that ideally have a working request and response that I can replicate.

Link to comment
Share on other sites

  • ESET Moderators

Hello guys,

I will ask internally as I have not experience with ESMC API.

May I ask why using the full ESMC is not the preferred option to manage the clients and utilize it's broad managing and reporting feature set?

Regards, Peter

Link to comment
Share on other sites

6 minutes ago, Peter Randziak said:

Hello guys,

I will ask internally as I have not experience with ESMC API.

May I ask why using the full ESMC is not the preferred option to manage the clients and utilize it's broad managing and reporting feature set?

Regards, Peter

We are managing all our system through N-Central, so we would like to do everything ESET through N-Central aswell.

especially since this is what our tech guys look at all day.

Link to comment
Share on other sites

  • 3 weeks later...
On 11/2/2019 at 6:01 AM, jcook said:

Hi @Peter Randziak, any update on this? I too am interested in getting Powershell to work the ESMC API.

Some simple working examples is what I'm lacking at the moment.

From what I've learned, there is no native way to handle the ESMC API in PowerShell, we are looking at building a .NET library that can be used in Powershell so we can access the API through that. But that seems a little more complicated than anticipated.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...