How to Unblock Multiple Files on Windows With PowerShell
So you’ve downloaded files onto a directory on your PC, but Windows doesn’t trust them? This is understandable because some files from the internet can harm your computer, but what if you know for sure that the files are safe? Luckily there’s an easy PowerShell command you can use to unblock all of them.
Sign up forfree
Forgot your password?
Create an account
*Required: 8 chars, 1 capital letter, 1 number
By continuing, you agree to thePrivacy PolicyandTerms of Use.You also agree to receive our newsletters, you can opt-out any time.

You can easily unblock a file by right-clicking on it and going toProperties— If you’re on Windows 11, you’ll need to clickShow more optionsfirst before you can see thePropertiesoption in the context menu. And once you’re there, select theGeneraltab and tickUnblockat the bottom in theSecuritysection.
But what if you have more than one file you need to unblock? Doing this one by one can get tedious. Alternatively, you may execute a single PowerShell command to unblock multiple files in a directory. Here is the command structure you need to use:

Just replacepathin the square brackets with the file path of the directory that has the blocked files. You can grab the file path of the directory by right-clicking on it and selectingCopy as path.
With the file path handy, follow the instructions below to use the unblock command in PowerShell:

There’s a way you could tell Windows to always trust files you download from the internet. To do that, please read our guide onhow to stop Windows 10 from blocking your downloaded files. The instructions in the tutorial use the Registry Editor and Local Group Policy Editor, so they should also work on Windows 11.
Now You Know How to Unblock Files You Know Are Safe
With the instruction above unlocking a bunch of downloaded files in a directory should be easier. Keep in mind that you shouldn’t do this on files you don’t trust. The last thing you want to do is put your Windows PC at risk unnecessarily
It’s easy to make a mistake with Windows and leave the front door open for hackers, so here’s how to lock it down once again.

My foolproof plan is to use Windows 10 until 2030, with the latest security updates.
Not Linux, not Windows. Something better.

I plugged random USB devices into my phone and was pleasantly surprised by how many actually worked.
Some subscriptions are worth the recurring cost, but not these ones.
Sometimes the smallest cleaning habit makes the biggest mess.