Unblock Files In Windows 8 Using PowerShell And Registry
Join the DZone community and get the full member experience.
Join For Freeintroduction
in case you haven’t noticed, the following “ unblock ” button is missing from windows 8 file properties.
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 ”.
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.
now if you right click on a file or files, then you will see the option to “ unblock files ”
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
Opinions expressed by DZone contributors are their own.
Trending
-
What ChatGPT Needs Is Context
-
What Is JHipster?
-
Replacing Apache Hive, Elasticsearch, and PostgreSQL With Apache Doris
-
Never Use Credentials in a CI/CD Pipeline Again
Comments