Create windows service under LocalSystem account
Hi, I'm trying create windows service using SC.exe, I do following command line sc create myservice binPath="C:\to\my bin\path\app.exe" . When I run the command line it fail, so I'm searching on internet how to create windows service undier windows 7. And I found that to create windows service I must provide an username and it's password. The problem is I don't want to run it as windows user, because when I create windows user for service, people can login as the user which I don't want user to login through it (because it just service user). So in this case I want to create service under LocalSystem account, or LocalNetwork that windows already have.
August 16th, 2010 2:42pm

I am not aware of creating the service to run under the LocalSystem acount from the get go. But why can't you create and assign the service using an arbitrary user account (this account can be disabled or removed later) and then later go into services.msc and modify the assigned account that will run the service? In services.msc you can specify in the Log On tab which account or 'use Local System account' for this newly created service, this ought to do the trick.
Free Windows Admin Tool Kit Click here and download it now
August 16th, 2010 8:06pm

Hi, The command "sc create myservice binPath="C:\to\my bin\path\app.exe" itself enough to create the service with local system account. Try running the command prompt with "run as administrator option". -AJ
August 17th, 2010 9:45am

Is there any solution by now? I've encountered a similar problem and can't find proper solution yet.
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2010 12:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics