fix bitlocker/manage-bde cmdline (#6586)
PTR committed
Dec 5, 2024 at 18:40 UTC
39e81befe1ab1cd51027958bc1919c5965e7675a
1 file changed
+1
-1
agents/modules_meshcore/computer-identifiers.js
+1
-1
@@ -458,7 +458,7 @@ function windows_volumes()
458
ret[drive].protectionStatus = (values[i].ProtectionStatus == 0 ? 'Off' : (values[i].ProtectionStatus == 1 ? 'On' : 'Unknown'));
459
try {
460
var foundIDMarkedLine = false, foundMarkedLine = false, identifier = '', password = '';
461
- var keychild = require('child_process').execFile(process.env['windir'] + '\\system32\\cmd.exe', ['/c', 'manage-bde -protectors -get ', drive, ' -Type recoverypassword'], {});
461
+ var keychild = require('child_process').execFile(process.env['windir'] + '\\system32\\cmd.exe', ['/c', 'manage-bde -protectors -get ' + drive + ': -Type recoverypassword'], {});
462
keychild.stdout.str = ''; keychild.stdout.on('data', function (c) { this.str += c.toString(); });
463
keychild.waitExit();
464
var lines = keychild.stdout.str.trim().split('\r\n');