From e6a40d94bced4d6741e984ee1b905a5e202fdc01 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Fri, 3 Jan 2025 08:24:48 +0100 Subject: [PATCH] powerShell added default path --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 1b3d779..a71f48b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -336,7 +336,7 @@ function findObjectByKey(array, key, value) { function getPowershell() { _powerShell = 'powershell.exe'; if (_windows) { - defaultPath = `${WINDIR}\\WindowsPowerShell\\v1.0\\powershell.exe`; + const defaultPath = `${WINDIR}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`; if (fs.existsSync(defaultPath)) { _powerShell = defaultPath; }