Improved MeshCMD AMTCCM error handling.

Ylian Saint-Hilaire committed Oct 30, 2021 at 20:19 UTC 5ec325c5ffa92f477d695ca4e685256739eb9218
1 file changed +1
agents/meshcmd.js
+1
@@ -1306,6 +1306,7 @@ function activeToCCM() {
1306 }
1307
1308 function activeToCCMEx(state) {
1309 + if (osamtstack == null) { console.log("Unable to perform MEI operations, try running as " + ((process.platform == 'win32') ? "administrator." : "root.")); exit(1); return; }
1310 osamtstack.BatchEnum(null, ['*AMT_GeneralSettings', '*IPS_HostBasedSetupService'], activeToCCMEx2);
1311 }
1312