Skip to content

Add Unblock-File step to README for ZIP users (prevents GUI launch) #720

Description

@se681268

Checklist

  • I have searched for existing issues/discussions and didn't find any similar ones.
  • I haven't used any other scripts, tools or programs that might have caused this issue.

Windows version

win11 23H2

Script mode/options

without any options

Describe the issue

When users download the Win11Debloat ZIP archive directly from GitHub (via browser) and extract it, Windows adds a "Mark of the Web" (Zone.Identifier) to all extracted files. This causes PowerShell to prompt a security warning for every single .ps1 file the script tries to load via dot-sourcing.

GUI depends on loading multiple script files, these prompts interrupt the initialization – the script cannot complete the load and falls back to CLI mode instead of showing the graphical interface.

A simple fix is to run(under the extracted folder):

Get-ChildItem -Path . -Recurse -File | Unblock-File

This removes the block in one step and allows the GUI to start normally.

Please consider adding this command to the README (under "Usage" or a new "Troubleshooting" section). It would make the tool more beginner-friendly.

Thank you for your work!

Steps to reproduce

Download the latest Win11Debloat ZIP from the Releases page using a browser.

Extract the ZIP to a folder.

Open PowerShell as Administrator and navigate to the extracted folder.

Run .\Win11Debloat.ps1 (or Run.bat).

Error output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedFurther information is requested, unable to reproduce

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions