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