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.
我已经看到很多关于早期版本的 Windows 指向 RSAT 和 ntrights.exe 的帖子,但这些解决方案都不适用于 Windows 10。我正在寻找一个最好在 powershell 或批处理中的解决方案。
好吧,我想通了。我最终不得不使用碳。运行后:
.\Carbon\Import-Carbon.ps1
我能够成功运行:
Grant-Privilege -Identity $username -Privilege SeServiceLogonRight
需要注意的是,本地安全策略管理器没有刷新按钮。您必须关闭并重新打开该工具才能查看对政策的外部更改。