mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 12:52:50 +03:00
add bios serial for windows
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
parent
6d27ff5969
commit
14c3816fc9
@ -1825,6 +1825,10 @@ function getSystemInformation(func) {
|
||||
if (results.hardware.windows.osinfo) { delete results.hardware.windows.osinfo.Node; }
|
||||
if (results.hardware.windows.partitions) { for (var i in results.hardware.windows.partitions) { delete results.hardware.windows.partitions[i].Node; } }
|
||||
} catch (ex) { }
|
||||
try {
|
||||
var values = require('win-wmi').query('ROOT\\CIMV2', "SELECT * FROM Win32_Bios", ['SerialNumber']);
|
||||
results.hardware.identifiers['bios_serial'] = values[0]['SerialNumber'];
|
||||
} catch (ex) { }
|
||||
}
|
||||
results.hardware.agentvers = process.versions;
|
||||
replaceSpacesWithUnderscoresRec(results);
|
||||
|
@ -5969,6 +5969,7 @@
|
||||
// BIOS
|
||||
if (ident.bios_vendor) { x += addDetailItem("Vendor", EscapeHtml(ident.bios_vendor), s); }
|
||||
if (ident.bios_version) { x += addDetailItem("Version", EscapeHtml(ident.bios_version), s); }
|
||||
if (ident.bios_serial) { x += addDetailItem("Serial", EscapeHtml(ident.bios_serial), s); }
|
||||
if (x != '') { sections.push({ name: "BIOS", html: x, img: 'chip' }); }
|
||||
|
||||
// Motherboard
|
||||
|
@ -11654,6 +11654,7 @@
|
||||
// BIOS
|
||||
if (ident.bios_vendor) { x += addDetailItem("Vendor", EscapeHtml(ident.bios_vendor), s); }
|
||||
if (ident.bios_version) { x += addDetailItem("Version", EscapeHtml(ident.bios_version), s); }
|
||||
if (ident.bios_serial) { x += addDetailItem("Serial", EscapeHtml(ident.bios_serial), s); }
|
||||
if (x != '') { sections.push({ name: "BIOS", html: x, img: 'chip64.png' }); }
|
||||
|
||||
// Motherboard
|
||||
|
Loading…
Reference in New Issue
Block a user