Hey All,
Fairly fresh to PS and PSAppDeployToolkit, so this might be a dumb question.
But I currently have a VBS script that installs a program and runs NTRIGHTS.exe to add SeServiceLogonRights to a domain user account so that I can run a service with it. However I am trying to get away from it and after googling for awhile found a script that looks good. I added it to the extensions ps1 and when I run the deploy ps1 I it fails and I cant figure out why. Can someone look at the script below and see if they spot anything? Thanks. Also if you can give any other way to do this with the toolkit itself that would be better.
(https://gallery.technet.microsoft.com/scriptcenter/Grant-Revoke-Query-user-26e259b0)