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.
由于安装了分区,我想使用 Powershell 递归地更改所有者和 ACL 权限(在我的情况下为完全控制)(文件夹和子文件夹和文件)。
得到了一个非常简单的方法(我想要的),即使它贬值了:
icacls "e:\program files" /grant administrators:F /t
好吧,对于所有者,我发现了这种方式:
takeown /f "c:\folder\subfolder" /r