Skip to content

Add processor architecture information in $PSVersionTable #16209

@mcfi

Description

@mcfi

Summary of the new feature / enhancement

Both x64 and ARM64 powershells can now run side-by-side on windows 11 on ARM64. To better differentiate one from the other, for example, when accessing different registry keys, or loading dlls of different architectures, it is recommended to have a processor architecture field in the $PSVersionTable. This way, the cmdlets don't need to issue Windows API calls to determine the architecture of the powershell process.

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backport-5.1-ConsiderConsider to backport to Windows PowerShell 5.1 due to impactIssue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreWG-DevEx-SDKhosting PowerShell as a runtime, PowerShell's APIs, PowerShell Standard, or development of modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions