首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ReparsePoint属性删除PowerShell

ReparsePoint属性删除PowerShell
EN

Stack Overflow用户
提问于 2015-07-20 19:09:54
回答 1查看 1.7K关注 0票数 0

您好,我有一些文件在网络共享,我需要删除ReparsePoint属性。我尝试将这些文件属性设置为'Normal‘,但没有删除'ReparsePoint’

代码语言:javascript
复制
Clear-Host
$Path = "\\network\share"
Get-ChildItem  $Path -recurse -force | ForEach {
($_.Attributes = "normal") 
}

如何从这些文件中删除'ReparsePoint‘属性?

EN

回答 1

Stack Overflow用户

发布于 2015-07-20 21:45:36

看起来我找到了可以在ReparsePoint上工作的工具。

fsutil reparsepoint删除file_name

代码语言:javascript
复制
Clear-Host
$Path = "\\network\share"
Get-ChildItem  $Path -recurse -force | Where-Object {($_.Length -like 1022) | ForEach {
fsutil reparsepoint delete $_ } 
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31514964

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档