Quantcast
Viewing all articles
Browse latest Browse all 36188

PowerTip: Use PowerShell 3.0 to Identify Zone Information of Files

Summary: Learn how to use Windows PowerShell 3.0 to identify the zone information of files in a folder.

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
  How can I use Windows PowerShell 3.0 to see which files in a folder have a Zone.Identifier alternate data stream so I can find files that came from the Internet?

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Answer
 Use the Get-Item cmdlet, specify the path for the files, and specify the Zone.Identifier name for the Stream parameter:

 Get-Item c:\fso\* -Stream zone*

Note   The –Stream parameter accepts wildcard characters, so you do not have to type the entire Zone.Identifier string.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>