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.
出于安全原因,我有一个文件需要归 NT AUTHORITY\SYSTEM 所有。我一生都无法在批处理文件中弄清楚如何做到这一点。
像这样:
icacls foo /setowner "NT AUTHORITY\SYSTEM"
请注意,您需要在提升的命令窗口中运行才能使其正常工作。