We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e97f74f commit f6714beCopy full SHA for f6714be
lib/kitchen/driver/powershell.rb
@@ -27,8 +27,17 @@ def encode_command(script)
27
Base64.strict_encode64(encoded_script)
28
end
29
30
+ def is_64bit?
31
+ os_arch = ENV['PROCESSOR_ARCHITEW6432'] || ENV['PROCESSOR_ARCHITECTURE']
32
+ os_arch == 'AMD64'
33
+ end
34
+
35
def powershell_64_bit
- 'c:\windows\sysnative\windowspowershell\v1.0\powershell.exe'
36
+ if is_64bit?
37
+ 'c:\windows\system32\windowspowershell\v1.0\powershell.exe'
38
+ else
39
+ 'c:\windows\sysnative\windowspowershell\v1.0\powershell.exe'
40
41
42
43
def wrap_command(script)
0 commit comments