Skip to content

Regression: MSI UAC prompt identifies the app as “Microsoft” instead of “PowerShell” #27993

Open

Description

Prerequisites

Steps to reproduce

  1. From a non-elevated Windows session, download the PowerShell 7.6.6 x64 MSI:

    https://github.com/PowerShell/PowerShell/releases/download/v7.6.6/PowerShell-7.6.6-win-x64.msi

  2. Launch PowerShell-7.6.6-win-x64.msi.

  3. Observe the application name in the UAC consent prompt.

The same behavior occurs when the MSI is installed using:

winget install --id Microsoft.PowerShell --exact --source winget

This appears to be a regression of #5642, which reported the same class of problem and was fixed by #5650.

The MSI has the correct ProductName, "PowerShell 7-x64", but its Authenticode SpcSpOpusInfo signed attribute (OID 1.3.6.1.4.1.311.2.1.12) contains the program name "Microsoft". UAC uses t
hat signed description as the application name.

Expected behavior

The UAC consent prompt identifies the application as PowerShell, for example:

  App: PowerShell 7
  Verified publisher: Microsoft Corporation

Actual behavior

The UAC consent prompt displays:

  App: Microsoft
  Verified publisher: Microsoft Corporation

  The generic app name does not tell the user that PowerShell is requesting elevation.

Error details

No PowerShell error is produced. This is incorrect identity information in the Windows UAC consent prompt.

Environment data

Name                           Value
  ----                           -----
  PSVersion                      7.6.6
  PSEdition                      Core
  GitCommitId                    7.6.6
  OS                             Microsoft Windows 10.0.26100
  Platform                       Win32NT
  PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
  PSRemotingProtocolVersion      2.4
  SerializationVersion           1.1.0.1
  WSManStackVersion              3.0

  Windows edition: Microsoft Windows 11 Enterprise
  Windows build: 26100
  Architecture: 64-bit
  Installer: PowerShell-7.6.6-win-x64.msi

Visuals

No response

Activity

  1. added
    Needs-Triage
    on Sep 9, 2026
  2. added
    WG-Maintainers-Build
    on Sep 23, 2026
  3. kilasuit commented on Sep 23, 2026

    @kilasuit
    Collaborator

    It seems not to matter about the installation method as I pulled the 7.6.0 zip, and on running pwsh.exe from that zip as Admin and it shows Microsoft where we'd expect it to show PowerShell, like it does for Windows PowerShell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions