Some legacy code in PowerShell checks the current Windows process architecture and if it is ARM forces PowerShell to run in Constrained Language mode.
https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/security/wldpNativeMethods.cs#L341
This is not needed anymore and ARM platforms should run PowerShell in FullLanguage mode by default.
Steps to reproduce
$ExecutionContext.SessionState.LanguageMode
Expected behavior
Actual behavior
Some legacy code in PowerShell checks the current Windows process architecture and if it is ARM forces PowerShell to run in Constrained Language mode.
https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/security/wldpNativeMethods.cs#L341
This is not needed anymore and ARM platforms should run PowerShell in FullLanguage mode by default.
Steps to reproduce
$ExecutionContext.SessionState.LanguageModeExpected behavior
Actual behavior