My work machine is configured so that every time I log off everything is reset. I need to run a service and I have everything automated so far except assigning the service user the rights to "Log on as a service". To manually do this task you would:

  • Run secpol.msc
  • Goto Local Policies > User Rights Assignment > Log on as a service
  • Add the user

I want to automate this. How would I do this via the command line in Windows XP SP3?

Update:

  • I can't rely on something that requires to be installed.
  • I don't have PowerShell installed on the machine
link|improve this question
@quanta unfortunately I can't rely on something that has to be installed or powershell :( – dmcgiv Jul 25 '11 at 15:43
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.