Skip to content

REST source configured via Group Policy: downloaded installers get Mark of the Web (ZoneId=3) #6362

Description

@dev-fYnn

Relevant area(s)

WinGet CLI

Relevant command(s)

winget install

Brief description of your issue

When installing/updating software via winget from a REST source that was added through Group Policy, downloaded installer files (e.g. MSI) are marked with the "Mark of the Web" (Zone.Identifier, ZoneId=3). This causes Windows to show the "Open File - Security Warning" dialog when the installer is executed, even though the source was explicitly trusted and configured via Group Policy.
This leads to never ending loops in the installation process. The process worked without conflicts until Version 1.29.

Image

Steps to reproduce

  1. Add a winget REST source via Group Policy (EnableAdditionalSources / configured source policy).
  2. Trigger an installation, e.g.:

Expected behavior

Since the source was explicitly added and trusted via Group Policy, installers downloaded through winget from that source should not be flagged with Mark of the Web / ZoneId=3, or the resulting security prompt should not block/interrupt unattended or scripted installations initiated by winget.

Actual behavior

Downloaded installer files consistently carry ZoneId=3 in their Zone.Identifier alternate data stream, causing the standard "Security Warning" dialog to appear when the file is executed — even outside of winget (e.g. manual double-click), and this cannot be suppressed via the SaveZoneInformation policy:

Environment

- Winget version: 1.29.280
- Windows version/build: 25H2 Build: 26200.8655
- Source type: private REST source (Winget-Repo), added via Group Policy
- Installer example: Google.Chrome (MSI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-InstallIssue related to WinGet InstallIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions