Casper Stekelenburg 0 Posted October 9, 2019 Share Posted October 9, 2019 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 More sharing options...
ESET Moderators Peter Randziak 1,010 Posted October 11, 2019 ESET Moderators Share Posted October 11, 2019 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 More sharing options...
Casper Stekelenburg 0 Posted October 11, 2019 Author Share Posted October 11, 2019 (edited) 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 October 11, 2019 by Casper Stekelenburg Link to comment Share on other sites More sharing options...
Ryan Essner 0 Posted October 14, 2019 Share Posted October 14, 2019 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 More sharing options...
ESET Moderators Peter Randziak 1,010 Posted October 16, 2019 ESET Moderators Share Posted October 16, 2019 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 More sharing options...
Casper Stekelenburg 0 Posted October 16, 2019 Author Share Posted October 16, 2019 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 More sharing options...
jcook 1 Posted November 2, 2019 Share Posted November 2, 2019 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. Link to comment Share on other sites More sharing options...
Casper Stekelenburg 0 Posted November 4, 2019 Author Share Posted November 4, 2019 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 More sharing options...
Recommended Posts