Get powershell path in %WINDIR%/System32

This commit is contained in:
sophia 2021-06-28 10:43:55 -05:00
parent 3e5d6929bb
commit 0a1b20bb07

View File

@ -18,7 +18,8 @@ module Vagrant
POWERSHELL_NAMES = ["powershell", "pwsh"].map(&:freeze).freeze
# Paths to powershell executable
POWERSHELL_PATHS = [
"%WINDIR%/WindowsPowerShell/v1.0",
"%SYSTEMROOT%/System32/WindowsPowerShell/v1.0",
"%WINDIR%/System32/WindowsPowerShell/v1.0",
"%PROGRAMFILES%/PowerShell/7",
"%PROGRAMFILES%/PowerShell/6"
].map(&:freeze).freeze