JSI Tip 8032. SERVACCT.EXE command-line freeware changes a service to start in a user account context.

Download SERVACCT.ZIP and unzip it.

The SERVACCT.TXT file contains:

SERVACCT.EXE : Service Account Password Utility : by Steven Wettberg
\[\\SERVER\] = UNC Path of the Server to configure
\[SERVICE\] = Service to configure
\[DOMAIN\USER\] = User context for the service
\[PASSWORD\] = Password for the above account
\[DOMAIN\] = Windows NT domain of the target server
\[/RESTART\] = Stops & restarts the target service
SERVACCT changes the target service so that the service starts under the 
context of the userid & password specified on the command line. The program
will grant the specified userid the "Log on as a Service" right if it has
not been previously granted.
Note: SERVICE is NOT the display name, use the string that would be used if 
you were issuing a NET STOP command. The /Restart parameter may be used to 
stop and start the service after the change, this is an optional parameter.
If the restart parameter is not used you must manually stop & start the service
to actually use the new logon information. If the service is already stopped 
when this program is run the service will not be started, this is by design.
Example: SERVACCT \\SERVER Schedule MyDomain\Userid Password MyDomain /Restart
NOTE: The SERVICE is the registry key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. If you open a CMD.EXE window and type net start, you can check the DisplayName Value Name at a key to verify you have identified the correct key.

JSI Example:


Changed the startup information for the MyService service on \\JSI009
Granted JSIINC\SVCAcct the "Log on as a Service Right" on \\JSI009

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.