June 11th, 2015

PowerTip: Read NTFS File System Stream with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to read a specific NTFS file system stream.

Hey, Scripting Guy! Question How can I use Windows PowerShell to read a specific NTFS file system stream?

Hey, Scripting Guy! Answer Use the Get-Content cmdlet and specify the name of the file and the name of the stream.
           This example reads a stream named Data:

Get-Content C:\fso\AnEmptyFile.txt -Stream data

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback