DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone >

Unblock Files In Windows 8 Using PowerShell And Registry

Michael Crump user avatar by
Michael Crump
·
May. 01, 12 · · Interview
Like (0)
Save
Tweet
8.24K Views

Join the DZone community and get the full member experience.

Join For Free

introduction

in case you haven’t noticed, the following “ unblock ” button is missing from windows 8 file properties.

image

this can be a tad annoying when downloading zip files from the internet and answering security prompt after prompt to get the file loaded. so, what did i do? i fixed it by using powershell and a quick registry entry.

the solution

note: if you don’t want to dig into the registry yourself then you can just download the completed .reg file here .

create a new registry entry in : hkey_classes_root\*\shell\ and call it powershell, now set the data to be “ unblock files ”.

snaghtml16b57822

underneath the powershell key we just created, add a new key called command and set the data to be c:\\windows\\system32\\windowspowershell\\v1.0\\powershell.exe unblock-file  -literalpath '%l'

just copy and paste that entire line.

snaghtml16b7f280

now if you right click on a file or files, then you will see the option to “ unblock files ”

image

also as stated earlier, you can download a .reg file from here to avoid performing any of this work. the contents of the registry file are as follows:

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'"

wrap-up

i hope this helped! thanks for reading.

the “latest and greatest” bits of all microsoft products can be found below.

windows 8 consumer preview download | vs11 beta download | azure sdk | azure trial | windows phone sdk | webmatrix

PowerShell

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Usage of Java Streams and Lambdas in Selenium WebDriver
  • Conducting Sprint Retrospective Meetings
  • How to Generate Fake Test Data
  • API Testing for Open Banking Operations

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo