How to Unblock A File in Windows 10 using the right-click Context Menu

In this post we will see how to Unblock a File in Windows 10/8 using the right-click context menu. If a file has come from another computer, a network or downloaded from the Internet, it may be blocked to protect your Windows PC. You may see a Windows has blocked access to this file message. But if you are sure that the file is safe, then you will have to first unblock it before you can open it.


Unblock a downloaded file using Context Menu

There is a posting on TechNet which says: To unblock a downloaded file, run the Unblock-File PowerShell 3.0 commandlet, like this:

Unblock-File .\php_manual_en.chm

Most Windows users may find themselves on unfamiliar territory with this suggestion!

Add Unblock Files to context menu

If you wish, you can add the “Unblock File” entry to your right-click context menu. This will let you unblock files easily.

To do so copy-paste the following in a Notepad and save it as a .reg file.

Then double-click on it to add its contents to your registry.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\powershell] @="Unblock Files"
[HKEY_CLASSES_ROOT\*\shell\powershell\command] @="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe
Unblock-File  -LiteralPath '%L'"

Now when you right-click any alien file you will see the option to Unblock File.

To unblock a file, simply right-click on the file and select Unblock Files! If you wish, you can download  a ready-to-use registry file by clicking here.  Extract the content of this zip file and double-click on the .reg file to add the entries to your registry.

This tip comes to you, thanks to


Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.


  1. mmg1818

    old Windows Vista trial 2009 no work

    now Windows Vista was available from the Digital River trial 2012

    i use vista ultimate again.

  2. Chris Webster

    Strange… I’m running Windows 8 CP, and I *do* have an unblock button under file properties.

  3. RST

    Great Method.
    However it doesnt work on Windows 7 x64 🙁
    Would be great if something like this existed on win7
    (it does add a context menu item but just flashes an cmd window)
    The term ‘Unblock-File’ is not recognised as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:13
    +Unblock-File -LiteralPath ‘*********’
    + CategoryInfo : ObjectNotFound: (Unblock-File:String) [],
    + FullyQualifiedErrorId : CommandNotFoundException
    the file stays blocked obviously.


  4. dcmfl

    Hi, I tried this on Windows 8 and it returned the following error message: This file does not have a program associated with it for performing this action. Any ideas how I can get round this?

  5. Craig

    Anyway to make Windows 8 not block these files in the first place?

  6. Yes you can. I will post a tutorial on it in a few days – and also post its link here.

  7. Ashish Goyal

    Hey i did what u said…but now i want to remove that unblock file option from context menu…How can i do this…??

  8. Stephen Norbury

    Quite old. But you need to update your powershell to 3.0. Its in the Framework 3.0. You can get it here –>

  9. Xhanoir

    The REG file works on w8 9200 core… It open a MSDOS window and process to ask, then it clean it.

  10. Himanshu

    I have downloaded the reg file and installed it. But now I need a way to uninstall what I installed with the reg file. So can you let me know how can I do it or another reg file to remove it.

  11. Wellington

    How to uninstall it?

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 2 =