Questions tagged [windows-service]

Windows services, also referred to as NT services, are background service processes run by the Service Control Manager based on the service settings and optionally restarted as needed. Windows services are also capable of being launched on demand, based on other service dependencies.

More information at:

http://msdn.microsoft.com/en-us/library/d56de412(v=vs.80).aspx

http://en.wikipedia.org/wiki/Windows_service

430 questions
16
votes
4 answers

Show status of a Windows service from the command prompt

Is there any Windows command which will show the status of a single service? For example, I want to know whether "IIS admin service" is running or not. If it is running the command ouput should be "running". I tried sc query type= service state= all…
vikas
  • 359
15
votes
2 answers

Problems creating service using sc.exe

I have this command to create a service: sc create svnserve binpath="\"C:\Program Files (x86)\Subversion\bin\svnserve.exe\" --service --root C:\SVNRoot" displayname="Subversion" depend=tcpip start=auto obj="NT AUTHORITY\LocalService" Unfortunately,…
13
votes
4 answers

Cannot delete an existing service using sc command: The specified service does not exist as an installed service

I want to delete MyNewService, but when I type in sc delete MyNewService I simply can't delete it because there is no such servic, due to "the Specified service does not exist as an installed service" error Any ideas how to solve this…
Graviton
  • 2,935
8
votes
2 answers

How to kill Windows service process stuck at starting?

Steps like Copy service name from service properties In administrator's command line run: sc queryex {here paste service name}, mark PID Run taskkill /f /pid {here paste PID} do not work, because process is not started yet (stuck at starting),…
avj
  • 183
7
votes
2 answers

Can I safely disable WinHttpAutoProxySvc if I don't have a proxy?

I noticed that this service starts and stops regularly seeking for proxies, but in the service description says that it implements the HTTP client stack. Is it used for something more than proxy autodiscover? Will I break something by disabling it?
jmservera
  • 123
3
votes
1 answer

How do you give an account permission to a start and stop a Windows Service?

How can I give an account permission to start or stop a particular Windows Service using SC.exe? What I'm trying to do is from one machine A call these operations from another machine B: net.exe use \\B /delete net.exe use \\B /user:B\
Sachin
  • 31
2
votes
2 answers

Persistent way to allow a user to restart a service

There is a windows service that gets reinstalled sometimes. I need a user to be able to start/stop/restart this service. This user is not an administrator and shouldn't be. If I use setacl.exe than it works, or even I can use sc sdset, but after the…
1
vote
0 answers

Service Delay In created service Error 1053

Heya all bit of a noob when it comes to all this but I created my own service to start an EXE as a service but it keeps telling me it didnt respond in a timely fashion is there any way to give it abit more time to start up.
1
vote
1 answer

Configuring service restart with 'restart service after' parameter

It appears that sc.exe isn't capable of setting the 'restart service after' parameter and powershell isn't capable of setting up service restarts at all. My intended configuration is failure1/restart failure2/restart failure3/nothing with a five…
Tim Brigham
  • 15,585
1
vote
3 answers

why sc query fails from one machine but works from another

I am using sc command to query status of a service running on computer PRODSRV from two computers. It works fine from one, but fails from another. What do I do wrong? PRODSRV is Windows Server 2003. Computer from which sc works is also Windows…
None
1
vote
1 answer

Is it possible to have DependOnService to depend on a service on another machine

On one server I have a Windows service that is dependent on a Windows service on another server. Is it possible to set up a dependency like this?
0
votes
0 answers

Why does the Windows Service Host exist?

I’m currently trying to debug a problem with Windows Deployment Services, where when it is set to ask the DHCP server for a multicast address range, the WDS service will not start because it gets an “Access Denied” response from DHCP. I can’t find…
0
votes
1 answer

Set Application.LocalUserAppDataPath for Windows Services

How to define the Application.LocalUserAppDataPath for windows services? Serive Account type as "LocalSystem". its referring the following path C:\Documents and Settings\LocalService\Application Data but, it required to use the following…
Selva
0
votes
1 answer

"Computer Browser" service on Windows Server 2003 crashing server

Our server (a Dell, that matters, since Auto Recovery on our backplate is causing the computer to reboot automatically due to the hang) is running Windows Server 2003 (x86). Our Browser (aka Computer Browser) service is causing a hang and crash,…
0
votes
1 answer

How to find out who is starting a service?

In one of our servers, SQL Server service though set to manual and its dependant services are stopped, still it starts automatically if we stop the SQL Server service. Is there a utility or way to find out who or which service is starting SQL Server…
1
2