PowerTip: Read NTFS File System Stream with PowerShell

Doctor Scripto

Dr Scripto

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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment