Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 422489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:05:11+00:00 2026-05-12T19:05:11+00:00

I am trying to have PowerShell unblock a file in Win2K8 R2. Does anyone

  • 0

I am trying to have PowerShell unblock a file in Win2K8 R2.

Does anyone have a pointer as to the syntax?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:05:12+00:00Added an answer on May 12, 2026 at 7:05 pm

    If you are using PowerShell v3, you can use the Unblock-File cmdlet.


    The “blocking” part is simply an alternate data stream of the file, named “Zone.Identifier”. You can display it in CMD by using input redirection (no other way to get to a stream in CMD, though):

    H:\Downloads> more < test.exe:Zone.Identifier
    [ZoneTransfer]
    ZoneId=3
    

    You can find them using dir /r on Windows Vista and later:

    2009-10-24  12:18        54.538.056 test.exe
                                     24 test.exe:Zone.Identifier:$DATA
    

    Also in CMD you can easily get rid of that by overwriting it (using output redirection, this time):

    echo.>myDownloadedFile.exe:Zone.Identifier
    

    which isn’t quite the same as removing the ADS completely, but works in that Explorer doesn’t complain anymore.

    There doesn’t seem to be native support for handling ADS from within PowerShell (as mentioned on The PowerShell Guy’s blog here. That article also has some information how to get that functionality in PowerShell). You could, however, simply call cmd:

    cmd /c "echo.>test.exe:Zone.Identifier"
    

    That works from PowerShell as well.

    Another option would be Mark Russinovich’s streams utility which allows you to inspect a file’s ADS and also to delete them. So

    streams -d myDownloadedFile.exe
    

    does work as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to have a logout page where is displays a messages and
I'm trying to have my Struts2 app redirect to a generated URL. In this
I'm trying to have a new layer appear above existing content on my site
I am trying to have one one layer, and center images within. I.E., if
I am trying to have a tooltip on multiple lines. how do i do
I am trying to have an element fade in, then in 5000 ms fade
I'm trying to have text spans pop up on a hover pseudo-class for different
I am trying to have a table header, in a seperate div stay in
I'm using VBScript (ASP Classic) and SQL Server; I'm trying to have a section
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.