Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用以下代码:
icacls C:\testscott\ /grant:r "TestGroup":(NP)F
但是,目录 C:\testscott\ 中的现有权限仍然存在。我认为使用 /grant:r 选项意味着它会覆盖现有权限?
用新分配的权限替换目录上的所有权限:
icacls c:\test /reset icacls c:\test /inheritance:r /grant Administrators:(OI)(CI)(F)