Using powershell, how do I grant “Log on as service” to an account?

后端 未结 8 871
感情败类
感情败类 2020-12-15 17:40

I\'m trying to use powershell to configure the account credentials, but I need to grant the account \"Log on as a service\" right in order for it to work. How can I do this

8条回答
  •  天命终不由人
    2020-12-15 18:31

    As easy solution in powershell

    just run

    .".\Add Account To LogonAsService.ps1" "DOMAIN\Account"
    

    https://gallery.technet.microsoft.com/scriptcenter/Grant-Log-on-as-a-service-11a50893

提交回复
热议问题