Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Unblock-File

Unblock-File - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Unblocks files that were downloaded from the Internet.

Unblock-File [-Path] <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Unblock-File -LiteralPath <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]

The Unblock-File cmdlet lets you open files that were downloaded from the Internet. It unblocks Windows PowerShell scri
pt files that were downloaded from the Internet so you can run them, even when the Windows PowerShell execution policy 
is RemoteSigned. By default, these files are blocked to protect the computer from untrusted files.

Before using the Unblock-File cmdlet, review the file and its source and verify that it is safe to open.

Internally, the Unblock-File cmdlet removes the Zone.Identifier alternate data stream, which has a value of "3" to indi
cate that it was downloaded from the Internet.

For more information about Windows PowerShell execution policies, see about_Execution_Policies (

This cmdlet is introduced in Windows PowerShell 3.0.