Skip to content

PowerShell runs in Constrained Language mode on ARM platforms #7045

@PaulHigin

Description

@PaulHigin

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

FullLanguage

Actual behavior

ConstrainedLanguage

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productOS-WindowsResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions