1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Small MQTT improvement.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-11 13:45:23 -07:00
parent 9d94a758cc
commit 4eecac6cce
4 changed files with 103 additions and 9 deletions

View file

@ -1785,6 +1785,7 @@ function createMeshCore(agent) {
*/
case 'av':
if (process.platform == 'win32') {
// Windows Command: "wmic /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct get /FORMAT:CSV"
response = JSON.stringify(require('win-info').av(), null, 1);
} else {
response = 'Not supported on the platform';
@ -2513,6 +2514,7 @@ function createMeshCore(agent) {
if ((flags & 4) && (process.platform == 'win32')) {
// Update anti-virus information
// Windows Command: "wmic /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct get /FORMAT:CSV"
var av, pr;
try { av = require('win-info').av(); } catch (ex) { av = null; } // Antivirus
//if (process.platform == 'win32') { try { pr = require('win-info').pendingReboot(); } catch (ex) { pr = null; } } // Pending reboot