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; }