脚本本地安全策略 [英] Scripting Local Security Policy

查看:229
本文介绍了脚本本地安全策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在服务器本地安全策略中,我需要向用户授予允许本地登录权限。

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?

推荐答案

从Windows 2003资源工具包中,您需要使用ntrights.exe

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

ntrights -u userName +r SeInteractiveLogonRight

有关ntrights的更多详细信息 here

More details about ntrights here

这篇关于脚本本地安全策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆