Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 20

Finding Files with Alternate Data Streams

$
0
0
This script shows how to use PowerShell to display only files with Alternate Data Streams;
Code:
get-ChildItem -recurse | % { get-item $_.FullName -stream * } | where stream -ne ':$Data' | select filename,stream,@{'name'='identifier';"e"={"$($_.filename):$($_.stream)"}}

Output example;
Code:
e:\utils>pshell adsdir.ps1

FileName                Stream          identifier
--------                ------          ----------
E:\Utils\ll.btm         123.txt         E:\Utils\ll.btm:123.txt...

Read more

Viewing all articles
Browse latest Browse all 20

Trending Articles