Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » Unblock-File

Unblock-File - Powershell 4.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 »

Unblock-File

Short description
Unblocks files that were downloaded from the Internet.

Syntax


Description
The Unblock-File cmdlet lets you open files that were downloaded from the Internet. It unblocks Windows PowerShell 
script 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 
indicate that it was downloaded from the Internet.


For more information about Windows PowerShell execution policies, see about_Execution_Policies 
(http://go.microsoft.com/fwlink/?LinkID=135170).


This cmdlet is introduced in Windows PowerShell 3.0.