powerShell added default path

This commit is contained in:
Sebastian Hildebrandt 2025-01-03 08:24:48 +01:00
parent aff943cbe4
commit e6a40d94bc

View File

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