mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-31 09:43:40 -04:00
fix volumes not closing powershell
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
e8cbebaffe
commit
cf23a3df81
@ -411,7 +411,7 @@ function windows_volumes()
|
|||||||
p1.child = child;
|
p1.child = child;
|
||||||
child.promise = p1;
|
child.promise = p1;
|
||||||
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
|
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
|
||||||
child.stdin.write('Get-Volume | Select-Object -Property DriveLetter,FileSystemLabel,FileSystemType,Size,SizeRemaining,DriveType | ConvertTo-Csv -NoTypeInformation\nexit\n');
|
child.stdin.write('Get-Volume | Select-Object -Property DriveLetter,FileSystemLabel,FileSystemType,Size,SizeRemaining,DriveType | ConvertTo-Csv -NoTypeInformation\r\nexit\r\n');
|
||||||
child.on('exit', function (c)
|
child.on('exit', function (c)
|
||||||
{
|
{
|
||||||
var a, i, tokens, key;
|
var a, i, tokens, key;
|
||||||
@ -447,7 +447,7 @@ function windows_volumes()
|
|||||||
child.promise = p2;
|
child.promise = p2;
|
||||||
child.tokens = tokens;
|
child.tokens = tokens;
|
||||||
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
|
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
|
||||||
child.stdin.write('Get-BitLockerVolume | Select-Object -Property MountPoint,VolumeStatus,ProtectionStatus | ConvertTo-Csv -NoTypeInformation\nexit\n');
|
child.stdin.write('Get-BitLockerVolume | Select-Object -Property MountPoint,VolumeStatus,ProtectionStatus | ConvertTo-Csv -NoTypeInformation\r\nexit\r\n');
|
||||||
child.on('exit', function ()
|
child.on('exit', function ()
|
||||||
{
|
{
|
||||||
var i;
|
var i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user