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
1 answer

How to add SSH key to PuTTY Agent at startup in Windows Server?

I need to add a private SSH key to Putty Agent (pagent.exe) every time a Windows server starts up -- before a user logs on interactively. The key is to be used by a service. If it was a regular user that needed to use the key, I would just place a…
15
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
  • 349
  • 3
  • 6
  • 13
15
votes
8 answers

nginx stop/reload on windows failed for Access is denied

I am running nginx on Windows Server 2008 R2 (x64) as a windows service. I am using Windows Service Wrapper for that. (Actually, I have followed this tutorial: http://mercurial.selenic.com/wiki/HgServeNginxWindows.) The service is running ok.…
TN.
  • 557
  • 5
  • 10
  • 21
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,…
Tola Odejayi
  • 334
  • 1
  • 4
  • 19
14
votes
1 answer

How can I back up my recommendation to NOT disable the Windows Firewall service?

I know from direct personal experience that disabling the Windows Firewall service on post-XP systems can lead to all sorts of networking problems, and that the proper way of disabling it is by configuring it to not block any traffic, yet leaving…
Massimo
  • 70,200
  • 57
  • 200
  • 323
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,865
  • 12
  • 42
  • 64
12
votes
3 answers

Force deletion of Windows service

I have installed a Windows service using the sc create method, then I later used the sc delete method to get rid of it, it then marked the service for deletion. I made changes to the service and recompiled it, then I tried to recreate it using sc…
Stuyvenstein
  • 231
  • 1
  • 3
  • 6
11
votes
6 answers

How do you prevent wuauserv (Windows Update Service) from restarting?

Regarding: net stop "windows update" this works for a while but then the service starts again. What is restarting this service and how do I prevent it from doing so?
Jon
  • 481
  • 3
  • 7
  • 14
10
votes
2 answers

What does exactly mean the "Automatic (Delayed)" mode for a Windows service?

Sorry for the approximative translation from french. So I understand pretty well what means : - disabled - manual - automatic But what does mean automatic (delayed) ? - Does Windows wait for a certain amount of time after the boot ? how much…
Jalil
  • 225
  • 2
  • 3
  • 9
10
votes
1 answer

What is the start order of services in Windows server

I have a Windows Service which is working fine in most of the servers. But in one server, I see that it starts before the network services are started. This is causing the services to hang and as a result OS is not booting up. It also gets stuck.…
AnOldSoul
  • 409
  • 1
  • 4
  • 8
10
votes
2 answers

How do I grant permissions to remotely start/stop a service using Powershell?

We have a PowerShell script that restarts a service on another computer. When we use PowerShell's built-in service control cmdlets, like so: $svc = Get-Service -Name MyService -ComputerName myservicehostname Stop-Service -InputObject…
splattered bits
  • 928
  • 3
  • 11
  • 23
10
votes
2 answers

Windows Service can't access network share

I have a Windows service running on my local machine. It's configured to run under NT AUTHORITY\NETWORK SERVICE. The program access a network shared drive on a computer in the same subnet. That shared directory has "Everyone" set to "Full…
Brian T
  • 203
  • 1
  • 2
  • 4
9
votes
4 answers

VMware Player - Running as a Service

Is it possible to run VMware player as a Windows Service so that a user does not have to be logged in to have the player running?
jdiaz
  • 1,189
  • 3
  • 16
  • 16
9
votes
1 answer

How to kill a hung service on Windows 2008R2

I have a Windows 2008R2 server running NSClient++. For some reason the service has got its knickers in a twist and stopped responding to Nagios polling. When I tried to restart the service the service manager takes a long time to try and kill the…
Kev
  • 7,877
  • 18
  • 81
  • 108
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
  • 1
  • 1
  • 4
1
2
3
28 29