且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

设置文件夹,子文件夹和文件权限设置ACL Powershell脚本.设置文件继承无效

更新时间:2022-11-28 11:56:30

最后我明白了. Protectet造成我故障的文件:

Finally i got it. The Files where Protectet bacause of my fault:

$acl.SetAccessRuleProtection($True, $False)

我需要将SetAccessRuleProtection更改为此:

i needed to Change the SetAccessRuleProtection to this:

$acl.SetAccessRuleProtection($False, $True)

感谢您对此初学者的解释ACL对象属性"SetAccessRuleProtection"被设置为ACL对象属性.在PowerShell中使用示例