Scripting Local Security Policy

你。 提交于 2019-12-25 02:48:07

问题


On a servers Local Security Policy I need to give a user rights to "Allow logon locally".

How do I do that through a script?


回答1:


From the Windows 2003 Resource Kit you need to use the ntrights.exe

ntrights -u userName +r SeInteractiveLogonRight

More details about ntrights here



来源:https://stackoverflow.com/questions/1564979/scripting-local-security-policy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!