From 5ec325c5ffa92f477d695ca4e685256739eb9218 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 30 Oct 2021 20:19:46 -0700 Subject: [PATCH] Improved MeshCMD AMTCCM error handling. --- agents/meshcmd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/agents/meshcmd.js b/agents/meshcmd.js index 71bb9243..74b3870c 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -1306,6 +1306,7 @@ function activeToCCM() { } function activeToCCMEx(state) { + if (osamtstack == null) { console.log("Unable to perform MEI operations, try running as " + ((process.platform == 'win32') ? "administrator." : "root.")); exit(1); return; } osamtstack.BatchEnum(null, ['*AMT_GeneralSettings', '*IPS_HostBasedSetupService'], activeToCCMEx2); }