From 71da6b6e265eba8e9c56bf3974eb496e98548c27 Mon Sep 17 00:00:00 2001 From: Mike Richmond Date: Wed, 16 Nov 2016 11:16:51 -0800 Subject: [PATCH] Add x86 support to the remoting install script --- src/powershell-native/Install-PowerShellRemoting.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/powershell-native/Install-PowerShellRemoting.ps1 b/src/powershell-native/Install-PowerShellRemoting.ps1 index b9b8a2077..dffe22869 100644 --- a/src/powershell-native/Install-PowerShellRemoting.ps1 +++ b/src/powershell-native/Install-PowerShellRemoting.ps1 @@ -57,8 +57,13 @@ function Register-WinRmPlugin # Filename = %windir%\\system32\\PowerShell\\6.0.0\\pwrshplugin.dll # Name = PowerShell.6.0.0 # - $regKeyValueFormatString = '' - $valueString = $regKeyValueFormatString -f $pluginEndpointName, $pluginAbsolutePath + $pluginArchitecture = "64" + if ($env:PROCESSOR_ARCHITECTURE -match "x86") + { + $pluginArchitecture = "32" + } + $regKeyValueFormatString = '' + $valueString = $regKeyValueFormatString -f $pluginEndpointName, $pluginAbsolutePath, $pluginArchitecture $keyValuePair = $regKeyName -f $valueString $regKey = $regKeyFormatString -f $pluginEndpointName