0

您好我在网络共享上有一些文件需要删除 ReparsePoint 属性。我试图将这些文件属性设置为“正常”,但没有删除“ReparsePoint”

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

如何从这些文件中删除“ReparsePoint”属性?

4

1 回答 1

1

看起来我找到了适用于 ReparsePoint 的工具。

fsutil reparsepoint 删除文件名

Clear-Host
$Path = "\\network\share"
Get-ChildItem  $Path -recurse -force | Where-Object {($_.Length -like 1022) | ForEach {
fsutil reparsepoint delete $_ } 
}
于 2015-07-20T13:45:35.580 回答