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.

learn more… | top users | synonyms

74
votes
3answers
96k views

How to add dependency on a Windows Service AFTER the service is installed

I have a Windows Service that makes use of a SQL Server database. I don't have control over the installation of the service, but would like to add a dependency on the service to ensure that it starts ...
43
votes
5answers
103k views

How do I grant start/stop/restart permissions on a service to an arbitrary user or group on a non-domain-member server?

We have a suite of Windows Services running on our servers which perform a bunch of automated tasks independently of one another, with the exception of one service which looks after the other ...
32
votes
5answers
53k views

How can I automatically restart a Windows service if it crashes?

I have a Windows service that exits unexpectedly every few days. Is there a simple way to monitor it to make sure it gets restarted quickly if it crashes?
28
votes
8answers
104k views

How do I restart a Windows service from a script?

I have a batch script that looks like: sc stop myservice sc start myservice it errors out because sc doesn't wait till the service is stopped. How do I restart a service with a script?
26
votes
5answers
4k views

What is svchost and why are multiple instances of it running?

There's six instances running on my desktop, and probably ten on a server I manage. What is this, and is it vital to system function?
18
votes
10answers
140k views

How to create a service running a .bat file on Windows 2008 Server?

I've created the service using sc create myService binpath=myservice.bat But when I start it, it fails with the following error message: [SC] StartService FAILED 1053: The service did not ...
14
votes
1answer
1k views

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 ...
13
votes
1answer
18k views

Windows service trigger start - difference manual vs automatic?

Since Windows Server 2008 R2 (and Windows 7 I think for the client OS) Microsoft has introduced trigger start for services. I do understand difference between automatic, automatic (delayed) and manual ...
13
votes
1answer
7k views

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 ...
12
votes
1answer
18k views

How do I increase windows service startup timeout

I have migrated software to a very slow sever. Some software services refuses to startup because of system timeout. How do I increase timeout from default 30 sec.(?) to several minutes? Thank you in ...
11
votes
5answers
83k views

How do I configure proxy settings for LOCAL SYSTEM?

If I edit Proxy Settings through the Control Panel, the settings are stored in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable and ...\ProxyServer. These ...
10
votes
2answers
13k views

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 ...
9
votes
2answers
11k views

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 ...
8
votes
5answers
51k views

How to start a service with certain start parameters on Windows

How do I start a service with certain parameters? In another question I have found net start servicename blah but if I try this, net throws a syntax error at me. What am I doing wrong? Edit: ...
8
votes
3answers
14k views

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?
8
votes
4answers
19k views

How can I get the path to a Windows service executable WITHOUT using sc qc?

I need to query a windows service for the path to it's executable via the command prompt. I think the way I would do this is:sc qc myServiceName, but when I do that, I get the following error: ...
8
votes
6answers
12k views

How do I track CPU Utilization for Window Services?

I am using the windows task manager to track CPU utilization. I notice that my applications are listed but Windows Services are not. For instance, total CPU usage is listed at 70% but the summary of ...
8
votes
2answers
11k views

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 ...
8
votes
2answers
3k views

What is the best way to allow a domain user to start and stop services on the machine?

What is the best way to allow a domain user to start and stop services on the machine? The domains user cannot be made admin.
8
votes
1answer
40k views

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 ...
7
votes
9answers
24k views

How can I restart a windows service remotely using a script?

I have a Python web application running in a CherryPy server, which is running as a windows service. I have a batch file to deploy this application, but I'm still having to remote desktop in to the ...
7
votes
5answers
5k views

SSH Tunnel as a Windows Service

I want to set up an SSH tunnel to run as a Windows service, I need to be able to set it up using only the command line so this counts out any software that doesn't include a command line version. ...
7
votes
2answers
741 views

Which user should a backup service run as?

I'm working on an application which uses Volume Shadow Copy Service to backup a particular file at regular intervals. This works when run as admin but when I run the service under the "Network ...
6
votes
4answers
5k views

Why can a user grant themselves the Log On As A Service right?

This article describes the (relatively laborious) steps you should go through to grant an Active Directory user the Log On As A Service right. However, if I install a service and manually specify my ...
6
votes
6answers
18k views

Auto-start the SQL Server Agent after a computer restart

I am using the SQL Server Agent to run some jobs every day, but the problem is that whenever the server (the machine itself) is restarted, the SQL Server Agent doesn't automatically start when the ...
6
votes
2answers
3k views

How to Install an executable as a Windows Service

I have an executable that doesn't require any interaction with the user and I want to install it as a Windows service; what do I need to have and do to make that happen? I didn't write the app; I ...
6
votes
2answers
12k views

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 ...
6
votes
3answers
11k views

How do I give a domain user permission to start and stop a Tomcat service?

I realize this is almost identical to this question but the big difference is that the methods described in the MSKB article DO NOT WORK for installed Tomcat services. They work for simple Windows ...
6
votes
2answers
6k views

Win2008: SC SDSET - how to grant a specific local user rights to stop and start a specific local service?

Where is a useful reference for the sdset command? I can read and read, and I have yet to find a straightforward list of steps to say: Service: App User: Joe Grant Joe start/stop/restart to App ...
6
votes
2answers
889 views

Windows Service Limit Crashes Services on Startup

We have developed a custom Windows service in C# as part of a large Enterprise application. Our QA department tests multiple versions of this service. The QA lab has several (over 20) copies of this ...
6
votes
1answer
456 views

User for MSSQL 2008 Service Accounts

I want to create a Domain User that runs the SQL Service Accounts. The reason for this is that I have setup mirroring and MS recommends having the same user (a domain user account) running the ...
6
votes
2answers
5k views

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: ...
5
votes
4answers
19k views

Running a Windows service under a domain user account

If I run a Windows service on some host under a domain user account, and the password for this account changes at some later point, will the service now fail to start, until you update the password? ...
5
votes
2answers
12k views

How to change user credentials of windows service from command line?

How to change user credentials of windows service from command line?
5
votes
4answers
33k views

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?
5
votes
2answers
9k views

How do I grant “log on as a service” permission to a (local) from the command-line?

On Windows Server 2008 R2 Core Edition, how do I assign the "log on as a service" permission to a user, from the command-line? (ntrights.exe from the Win2003 resource kit is not included in Win2008 ...
5
votes
2answers
4k views

Vboxheadless without a command prompt (VirtualBox)

I'm trying to run VirtualBox VM's in the background from a service. I'm having trouble starting a process the way I desire. I'd like to start the virtualbox guest in headless mode as a separate ...
5
votes
1answer
3k views

In a Windows Service, will the Start Parameters be preserved if the Start is of type “Automatic”?

Well the title says it, in a Windows Service, will the Start Parameters be preserved after a reboot if the Start is of type "Automatic"? Many Thanks
5
votes
1answer
4k views

How do I set a service startup type to be 'Automatic (delayed)' using GPO?

A Windows service has 4 different startup types that can be configured: Automatic, Automatic (delayed), Manual and Disabled. I have a service running on a combination of Windows 7 and Server 2008 R2 ...
5
votes
3answers
12k views

Is it possible to use Group Policy to grant the permission to manage Windows services?

Is it possible to use Group Policy to grant the permission to manage Windows services? I would really like to know if this is even possible, and if so, where do you recommend I look for more ...
5
votes
3answers
12k views

Apache 2.2 on Windows Server: won't start after attempting to change drive letter of all data and logs

I manage a web server that's running on Windows Server 2008 as a 64bit virtual host. All service software is running independently, and not as part of an AMP stack. The data drive has nearly filled up ...
5
votes
1answer
6k views

Windows Application Experience Service

On a Windows 2008 R2 Enterprise server, the event log is reporting event id 7036 "The Application Experience service entered the stopped state" and then later that it has started. This occurs ...
5
votes
3answers
5k views

Recommended service account setup for MS SQL Server 2005/2008

We have a number of MS SQL servers in our environment running either SQL Server 2005 standard/enterprise or SQL server 2008 enterprise. Currently the SQL services are running as local service or ...
5
votes
2answers
22k views

Error 1069 the service did not start due to a logon failure

Our CruiseControl.NET service on Win2003 Server (VMWare Virtual) was recently changed from a service account to a user account to allow for a new part of our build process to work. The new user has ...
5
votes
2answers
2k views

Mapping Drive Error - System Error 1808

A vendor is attempting to map and preserve a network drive using nt authority/system; so it stays persistent when the interactive session of the server is lost. They were able to do this on one server ...
4
votes
2answers
4k views

How do I make one service dependent on another in Windows 7?

If I view properties for a service, I can see the "Dependencies" tab, but I can't assign other services to this tab. I have two services that start on startup, a server and a database. The server ...
4
votes
4answers
898 views

Will a Local System service notice changes to environment variables in Windows 2008 R2 without a reboot?

Microsoft has a knowledge base article, last reviewed in June 2007, which states: If you update environment variables or add new environment variables, you must restart the computer before the ...
4
votes
2answers
17k views

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 ...
4
votes
2answers
3k views

Windows Event Log service won't start - how to figure out cause

Windows Event Log service will not start, it says "Error 2: The system cannot find the file specified." I've tried sfc /scannow and it reported zero issues. All other services start up fine, so ...
4
votes
2answers
6k views

Error installing a .NET Windows service with InstallUtil

I keep getting the error below when every I try to use the InstallUtil to install my .NET service. I put "installutil myservice.exe" into command prompt and then get the error. Any idea of what the ...