PowerShell / PowerShell/PowerShell

"System administrator has set policies to prevent this installation" error when installing PowerShell 7.4.5 on Windows 11 as admin on a non-domain machine...

Open
#24,199 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Needs-Triage
Dominant language
C#
Stars
55.5k
Forks
8.5k
Avg merge
1d 2h
Merged PRs (30d)
88

Description

Prerequisites
Steps to reproduce

I am encountering an issue when trying to install PowerShell 7.4.5 on a Windows 11 system using the MSI installer (PowerShell-7.4.5-win-x64.msi). Upon running the installer, I receive an error message stating, "The system administrator has set policies to prevent this installation."

I am logged in as an administrative user, I have unblocked the file

Steps to Reproduce:

  1. Download the PowerShell 7.4.5 MSI installer (PowerShell-7.4.5-win-x64.msi) from the official GitHub release page.
  2. Run the installer on a Windows 11 machine.
  3. Observe the error message.

The certificate does appear revoked, please see screenshot.

Expected behavior
The installer should run and install PowerShell 7.4.5 without displaying the error, assuming proper administrative privileges.
Actual behavior
An error dialog appears with the message: "The system administrator has set policies to prevent this installation.
Error details
=== Verbose logging started: 2024-08-23  14:23:32  Build type: SHIP UNICODE 5.00.10011.00  Calling process: C:\Windows\system32\msiexec.exe ===
MSI (c) (74:E0) [14:23:32:749]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (74:E0) [14:23:32:750]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (74:F8) [14:23:32:765]: Resetting cached policy values
MSI (c) (74:F8) [14:23:32:765]: Machine policy value 'Debug' is 0
MSI (c) (74:F8) [14:23:32:765]: ******* RunEngine:
           ******* Product: PowerShell-7.4.5-win-x64.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (74:F8) [14:23:32:766]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (74:F8) [14:23:32:782]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\Arsalan\downloads\PowerShell-7.4.5-win-x64.msi' against software restriction policy
MSI (c) (74:F8) [14:23:32:782]: SOFTWARE RESTRICTION POLICY: C:\Users\Arsalan\downloads\PowerShell-7.4.5-win-x64.msi has a digital signature
MSI (c) (74:F8) [14:23:32:869]: SOFTWARE RESTRICTION POLICY: C:\Users\Arsalan\downloads\PowerShell-7.4.5-win-x64.msi is not permitted to run at the 'unrestricted' authorization level.
MSI (c) (74:F8) [14:23:32:869]: SOFTWARE RESTRICTION POLICY: C:\Users\Arsalan\downloads\PowerShell-7.4.5-win-x64.msi was disallowed because a required certificate in its digital signature has been revoked by its issuer (status = 0x800B010C). The returned execution level was 0
MSI (c) (74:F8) [14:23:32:869]: The installation of C:\Users\Arsalan\downloads\PowerShell-7.4.5-win-x64.msi is not permitted by software restriction policy. The Windows Installer only allows installation of unrestricted items. The authorization level returned by software restriction policy was 0x0 (status return 0x800b010c).

MSI (c) (74:F8) [14:23:32:869]: Note: 1: 1718 2: C:\Users\Arsalan\downloads\PowerShell-7.4.5-win-x64.msi 
MSI (c) (74:F8) [14:23:32:869]: MainEngineThread is returning 1625
=== Verbose logging stopped: 2024-08-23  14:23:32 ===
Environment data
The system is running Windows 11.
The MSI installer was run from an elevated command prompt.
The error appears despite having administrative privileges.
I checked Group Policies, but no explicit restrictions seem to be in place for MSI installations.
The error might be related to a certificate issue, as indicated by the log entry 0x800B010C, which suggests that a required certificate in the digital signature has been revoked.
Visuals

image
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PowerShell-7.4.5-win-x64.msi artifact and the provided verbose MSI log, especially the software restriction policy and 0x800B010C certificate-revocation entries. Compare the installer’s signing state with the release artifact; done means the cause is confirmed and the installation behavior or release guidance addresses the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
operating-systems, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.