【发布时间】:2021-07-07 22:48:13
【问题描述】:
我正在执行这个命令来获取用户和他们的权限:
Get-Acl $path |
select -ExpandProperty Access |
where { $_.IdentityReference -match "Users" } |
select -Property * -ExcludeProperty IsInherited |
Format-Table
FileSystemRights AccessControlType IdentityReference InheritanceFlags PropagationFlags
---------------- ----------------- ----------------- ---------------- ----------------
ReadAndExecute, Synchronize Allow BUILTIN\Users ContainerInherit, ObjectInherit None
AppendData Allow BUILTIN\Users ContainerInherit None
CreateFiles Allow BUILTIN\Users ContainerInherit None
在这一用户中,用户具有特殊的访问权限。我需要删除该用户。
请您帮助识别该用户。
【问题讨论】:
-
您想要做什么并不完全清楚。 删除该用户到底是什么意思?
-
我添加了一张图片。需要删除此用户。
-
那不是用户,它是一个内置组,就像你用
Get-Acl向我们展示的一样:) -
我不太清楚这一点,但它显示 3 User right..?
-
不,它显示了具有不同访问控制列表的相同组。
标签: powershell acl