


Batch unlocking Windows files: Use PowerShell command
Files downloaded from the Internet are sometimes blocked by Windows security mechanisms. This article will explain how to use the PowerShell command to unlock multiple files in batches.
How to determine whether the file is blocked?
Why does Windows block files? Typically, files downloaded from the Internet and saved to a computer are blocked as untrusted files before gaining Windows trust.
This is to protect the system from security. Windows needs to carefully identify potential threats, especially for files downloaded from the Internet. For example, malware may disguise itself as a JPEG image file and unknowingly initiate malicious activities, resulting in system crashes, data loss, privacy leakage, etc.
To check the file status, right-click the file and select Properties. In the General tab, you will see a security warning message:
This file comes from another computer and may have been blocked to help protect this computer.
If you only want to unlock a single file, you can check the Unblock option and click Apply > OK. If you want to batch unlock multiple files, you can use PowerShell.
How to batch unlock multiple files using PowerShell?
PowerShell provides a command to unlock files downloaded from the Internet. Here are the detailed steps:
Step 1: Find the directory path that contains the blocked file. You can copy the path from the address bar of File Explorer, or right-click the file and select Copy as Path.
Step 2: Enter "PowerShell" in the search bar, and then select "Run as administrator" under "Windows PowerShell".
Step 3: Enter the following command and press Enter. Please<path></path>
Replace with the actual path to the directory containing the blocked file.
dir<path> | Unblock-File</path>
For example, to unlock all files with "PowerShell" in the C:\Downloads directory, execute the following command:
dir C:\\Downloads\\\*PowerShell\* | Unblock-File
If you execute the command dir [path] | unblock-file -confirm
, you will be prompted to confirm the file you want to unlock. You can enter "Y" to confirm, or "N" to "No" to reject. If you have checked and confirmed that there are no harmful files that need to be deleted, you can enter "A" to confirm all files.
Suggestions: Back up data regularly
Blocked files are not trusted by Windows for some reason, which means that there may be security issues with these files. If you insist on unlocking them, we recommend that you back up important data in advance to prevent data loss.
MiniTool ShadowMaker can better complete data backup work. It has been deeply rooted in this field for many years, allowing users to back up files, folders, partitions, disks and systems. With a prepared system backup, you can quickly recover if needed.
To save you time and resources, the tool prepares backup plans and plans – full backups, incremental backups, and differential backups. If you want to try more features such as media builder, cloning disk, sync, etc., download and install the program for a 30-day free trial.
SM-Trial
Summarize:
This article describes how to use PowerShell to batch unlock multiple files. You can follow the steps to resolve your problem.
The above is the detailed content of How to Bulk Unblock Multiple Files via PowerShell? Resolved!. For more information, please follow other related articles on the PHP Chinese website!

Some Windows 11/10 users report that they see a cmd window open up right after a Bitdefender update and it is running SecureBootEncodeUEFI.exe. This post from php.cn introduces how to remove the SecureBootEncodeUEFI.exe Trojan.

Sysdll_win64_retail.dll is a dynamic link library (DLL) file related to the FIFA 17 application. When that file gets missed or corrupted, a series of issues and errors will happen about that application. To resolve this issue, you can read this artic

Many SurfaceBook users report that they meet the “core isolation blocked by ew_usbccgpfilter.sys” issue on Windows 11/10. This post from php.cn helps to fix the annoying issue. Keep on your reading.

When you press Ctrl Alt Del on your computer, you will enter the Security Options window, where you might see Lock, Switch user, and Sign out options. Do you know that these options can be changed? This php.cn post will show you how to remove opt

Some Windows 11/10 users report that their Windows Defender has spotted a virus named Virus:Win32/Grenam.VA!MSR. But they don’t know how to remove it. This post from php.cn teaches you how to remove Virus:Win32/Grenam.VA!MSR.

When you need to visit a website frequently, it is quite troublesome to open a browser and search for it every time. Why don’t you try to save a website as an app? If you do this, you can open it as normal software. Here, php.cn offers you some usefu

Some people encountered the error code 0x00000000 on Windows 11 when they installed the latest Windows update. What should you do to cope with this unexpected error? This article on the php.cn Website will give you some clues for troubleshooting.

Are you suffering from the error message "FileType selected not supported by this app" when opening files in Teams or Excel? Now read this post from php.cn to get several useful solutions to this issue.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.