📚 Knowledge Garden

Search

Search IconIcon to open search

Run an unsigned application

Last updated Apr 30, 2025

# MacOS

Many applications published for MacOS are signed, but this requires the developer to pay for an Apple developer account.

When running an unsigned application for the first time, MacOS will warn the user the application cannot be run and will not give any information on why this is.

To allow execution of the application, run the following command.

1
xattr -rd com.apple.quarantine <path to application>

For example if you install the terminal application Alacritty using Homebrew:

1
brew install alacritty

You will not be able to run the application at first, but after running:

1
xattr -rd com.apple.quarantine /Applications/Alacritty.app

You will be able to run the application in the normal way.

# Windows

While most applications can be run on Windows without code signing, however unsigned Powershell scripts are disabled by default.

# For a specific script

You can set an execution policy each time you run a script with the following. This will allow you to run a locally created Powershell script while retaining protection from remote unsigned scripts.

1
powershell.exe -ExecutionPolicy RemoteSigned -File C:\Path\To\Script.ps1

If you’re feeling lucky, you can always bypass all protections, and get no feedback or warnings for unsigned remote scripts by running.

1
powershell.exe -ExecutionPolicy Bypass -File C:\Path\To\Script.ps1

# For every script

While not recommended (as it may leave your computer vulnerable) you can allow unsigned scripts with the Set-ExecutionPolicy command.

1
Set-ExecutionPolicy -Scope <scope> -ExecutionPolicy <policy>

Scope can be one of the following:

ExecutionPolicy can be one of the following: