【问题标题】:How do I grant SeBatchLogon privileges to a domain account on a Windows server with Powershell?如何使用 Powershell 向 Windows 服务器上的域帐户授予 SeBatchLogon 权限?
【发布时间】:2013-08-17 00:37:58
【问题描述】:

我使用的是 Windows Server 2008 R2。对于加入 Windows 2008 R2 域的服务器,我想向帐户授予 SeBatchLogon 权限,例如,我希望域帐户“mydomain\batchuser”在本地 Windows 2008R2 服务器上具有批量登录权限,以便我可以运行计划该登录下的任务。我可以通过 Windows GUI 设置权限,但如何使用 Powershell 编写脚本?

【问题讨论】:

    标签: powershell windows-server-2008 windows-server-2008-r2 windows-server


    【解决方案1】:

    使用Windows Server 2003 Resource Kit Tools中的ntrights.exe

    ntrights +r SeBatchLogon -u mydomain\batchuser
    

    【讨论】:

    • 我对此进行了调查,但我们没有安装资源工具包。我将不得不与我们的管理员核实,看看这是否可能。我希望有一些 Windows 原生的东西我可以使用。
    • 您可以下载该软件包并解压缩该可执行文件。它自行运行,无需安装。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-03-15
    • 1970-01-01
    • 1970-01-01
    • 2015-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多