我知道我可以使用 get-acl 复制现有的 ACL,然后使用 set-acl 修改它们,但是有没有一种方法可以创建一个新的空白 acl,然后添加我需要的内容?例如:
$foo = new-acl #push some access rules into $foo set-acl C:\myFolder $foo
windows powershell access-control-list
access-control-list ×1
powershell ×1
windows ×1