fix volumes not closing powershell
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Sep 3, 2024 at 20:03 UTC
cf23a3df81de1e1b049a585c72b1b43ecaf40b69
1 file changed
+2
-2
agents/modules_meshcore/computer-identifiers.js
+2
-2
@@ -411,7 +411,7 @@ function windows_volumes()
411
p1.child = child;
412
child.promise = p1;
413
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
414
- child.stdin.write('Get-Volume | Select-Object -Property DriveLetter,FileSystemLabel,FileSystemType,Size,SizeRemaining,DriveType | ConvertTo-Csv -NoTypeInformation\nexit\n');
414
+ child.stdin.write('Get-Volume | Select-Object -Property DriveLetter,FileSystemLabel,FileSystemType,Size,SizeRemaining,DriveType | ConvertTo-Csv -NoTypeInformation\r\nexit\r\n');
415
child.on('exit', function (c)
416
{
417
var a, i, tokens, key;
@@ -447,7 +447,7 @@ function windows_volumes()
447
child.promise = p2;
448
child.tokens = tokens;
449
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
450
- child.stdin.write('Get-BitLockerVolume | Select-Object -Property MountPoint,VolumeStatus,ProtectionStatus | ConvertTo-Csv -NoTypeInformation\nexit\n');
450
+ child.stdin.write('Get-BitLockerVolume | Select-Object -Property MountPoint,VolumeStatus,ProtectionStatus | ConvertTo-Csv -NoTypeInformation\r\nexit\r\n');
451
child.on('exit', function ()
452
{
453
var i;