ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How To Unblock Files on Windows That Are Blocked with PowerShell

    IT Discussion
    powershell unblock windows
    1
    1
    845
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Sometimes Windows will detect that a file has come from another computer and will block the file. Unblocking a single file from the GUI is super easy. It's just a check box. But if you have lots of files, this is tedious. Even if you set Group Policy or the Registry to stop blocking any files, ones that are already blocked remain blocked. What to do?

      PowerShell is here for you. Just use a recursive DIR command and pipe the output to the Unblock-File commandlet and voila.

       dir c:\mydata -Recurse | Unblock-File
      
      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post