I am having a PowerShell script which is walking a directory tree, and sometimes I have auxiliary files hardlinked there which should not be processed. Is there an easy way
Utilize Where-Object to search for the ReparsePoint file attribute.
Where-Object
Get-ChildItem | Where-Object { $_.Attributes -match "ReparsePoint" }