Jump to content
Casper Stekelenburg

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...