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
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