Skip to content

Commit

Permalink
move main identifiers object
Browse files Browse the repository at this point in the history
  • Loading branch information
si458 committed Oct 8, 2023
1 parent 8c6cd14 commit 98a7f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/identifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,10 @@ function windows_identifiers()
var ret = { windows: {} };
var items, item, i;

ret['identifiers'] = {};

var values = require('win-wmi').query('ROOT\\CIMV2', "SELECT * FROM Win32_Bios", ['ReleaseDate', 'Manufacturer', 'SMBIOSBIOSVersion', 'SerialNumber']);
if(values[0]){
ret['identifiers'] = {};
ret['identifiers']['bios_date'] = values[0]['ReleaseDate'];
ret['identifiers']['bios_vendor'] = values[0]['Manufacturer'];
ret['identifiers']['bios_version'] = values[0]['SMBIOSBIOSVersion'];
Expand Down

0 comments on commit 98a7f15

Please sign in to comment.