ReparsePoint attribute remove PowerShell

2.3k Views Asked by At

Hi I have some files on network share that I need to remove ReparsePoint attribute. I have tried to set those file attributes to 'Normal' but it didn't remove 'ReparsePoint'

Clear-Host
$Path = "\\network\share"
Get-ChildItem  $Path -recurse -force | ForEach {
($_.Attributes = "normal") 
}

How I can remove 'ReparsePoint' attribute from those files?

1

There are 1 best solutions below

1
On

Looks like I found tool which works on ReparsePoint.

fsutil reparsepoint delete file_name

Clear-Host
$Path = "\\network\share"
Get-ChildItem  $Path -recurse -force | Where-Object {($_.Length -like 1022) | ForEach {
fsutil reparsepoint delete $_ } 
}