diff --git a/src/powershell-native/Install-PowerShellRemoting.ps1 b/src/powershell-native/Install-PowerShellRemoting.ps1 index 8e3009a7df5..b9b8a2077ce 100644 --- a/src/powershell-native/Install-PowerShellRemoting.ps1 +++ b/src/powershell-native/Install-PowerShellRemoting.ps1 @@ -142,7 +142,7 @@ else Write-Verbose "Using PowerShell Version: $targetPsVersion" -Verbose } -$pluginBasePath = Join-Path "$env:WINDIR\System32\PowerShell" $powerShellVersion +$pluginBasePath = Join-Path "$env:WINDIR\System32\PowerShell" $targetPsVersion $resolvedPluginAbsolutePath = "" if (! (Test-Path $pluginBasePath))