mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
swap powershell write to command instead
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -249,7 +249,7 @@ function lockDesktop(uid) {
|
||||
case 'win32':
|
||||
{
|
||||
var options = { type: 1, uid: uid };
|
||||
var child = require('child_process').execFile(process.env['windir'] + '\\system32\\cmd.exe', ['/c', 'RunDll32.exe user32.dll,LockWorkStation'], options);
|
||||
var child = require('child_process').execFile(process.env['windir'] + '\\system32\\cmd.exe', ['cmd', '/c', 'RunDll32.exe user32.dll,LockWorkStation'], options);
|
||||
child.waitExit();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user