# Unblock-File

*noun*

say it: **“un-BLOK FYL”** **/ʌnˈblɑk ˈfaɪl/**

A PowerShell command that marks a downloaded file as trusted, so a script from the internet can run.

## What does **Unblock-File** do?

`Unblock-File` takes the mark of the web off a downloaded file: the label that makes the RemoteSigned policy refuse a script unless it's signed. Read the script first, because unblocking says you trust it.

```powershell
Get-Content .\rename-photos.ps1     # read it first
Unblock-File .\rename-photos.ps1
```

## In a sentence

- “**Unblock-File** took away the From the internet label.”
- “After reading the script, Sam used **Unblock-File** so it would run.”

Level: Apprentice · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=2)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/unblock-file
