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

45
votes
3answers
47k 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 ...
29
votes
4answers
59k 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 ...
24
votes
5answers
2k 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?
19
votes
7answers
57k 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?
17
votes
5answers
23k 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?
14
votes
1answer
388 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 ...
10
votes
8answers
82k 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 ...
8
votes
3answers
10k 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
2answers
7k 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 ...
8
votes
2answers
1k 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.
7
votes
2answers
4k 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 ...
7
votes
5answers
3k 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
295 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 ...
7
votes
1answer
11k 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 ...
6
votes
9answers
20k 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 ...
6
votes
4answers
3k 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
4answers
35k 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 ...
6
votes
2answers
4k 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 ...
6
votes
2answers
594 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
695 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
452 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 ...
5
votes
2answers
11k 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
3answers
9k 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 ...
5
votes
1answer
1k 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
2answers
3k 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
3answers
4k 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
1k 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
4answers
10k 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? ...
4
votes
2answers
2k 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
4k 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 ...
4
votes
2answers
8k 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 ...
4
votes
3answers
4k views

How to map a drive for a windows service?

I am supporting the installation of a CCTV system from the Windows 2003 R2 Standard side of the equation, the intention was to use use a NAS for long term storage (quite a lot of data is generated in ...
4
votes
1answer
277 views

I'm looking for a robust way to determine if a service can be stopped or killed

I'm looking for a robust way to determine if a service can be stopped without data loss or corruption, or if a regular stopping will work if the service can be killed via powershell. I thought about ...
4
votes
3answers
492 views

What is the difference between running a Windows service vs. running through shell?

I am trying to troubleshoot an issue on a Windows 2008 server where running attempting to connect to a "Timberline Data Source" ODBC driver crashes if the call is in a "service" context, but succeeds ...
4
votes
1answer
173 views

“SC.EXE config” and dollar sign in service name

Say I want to make Windows Service startup dependent on SQL Server. In my case service name for SQL Server is MSSQL$SQL11 (SQL11 is SQL Server instance name) However, when I issue this command: ...
4
votes
5answers
1k views

100% CPU use when new usb device plugged in - services.exe / windows server 2003

On my server I am trying to install a new usb drive but all that happens is the system starts using huge amounts of processor cycles with services.exe. On closer inspection with process explorer there ...
3
votes
1answer
273 views

Can I start a Windows Service on another server from the command line?

Can I (How can I) remotely start and stop a Windows Service running on another server from the command line? My server is running Windows Server 2003.
3
votes
1answer
99 views

How can I tell what user account is being used by a service to access a network share on a Windows 2008 server?

I've got a third-party app/service running on a Windows 2003 SP2 server that is trying to fetch something from a network share on Windows 2008 box. Both boxes are members of an AD domain. For some ...
3
votes
6answers
10k 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 ...
3
votes
6answers
2k views

Cannot start ` Secure Socket Tuning Protocol Service`

I tried to start Routing and Remote Access Service but I've got an error says the dependency service or group failed to start then I tried to start Remote Access Connection Manager (one of RRAS's ...
3
votes
1answer
2k 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 ...
3
votes
2answers
2k views

How to get a service to listen on port 80 on Windows Server 2003

I've coded a custom windows service that listens on TCP port 80 but when I try to install it on a Windows Server 2003 machine it fails to start because some other service is already listening on that ...
3
votes
1answer
8k 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 ...
3
votes
1answer
157 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 ...
3
votes
2answers
2k views

ASP.Net State Service missing from Services

The ASP.net State Service appears to have mysteriously disappeared from our web server's Services list after changing the .Net version in an IIS app pool to v4 and then changing it back to v3.5 again. ...
3
votes
1answer
157 views

How to Get Company Name for a Windows Service Using Powershell

In order to be able to easily detect which of a group of security products is installed on a machine, I would like to be able to filter the Powershell Get-Service output by the Company Name attached ...
3
votes
1answer
490 views

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

Windows Service >> 'Log on as' does not load user's profile?

I have an application running as a service under a certain user, but for some reason when the machine is (re)started and the service starts it does not load that particular user's profile (including ...
3
votes
2answers
3k 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 ...
3
votes
1answer
2k views

.\postgres looses “Log on as a service” after reboot; PostgreSQL service does not start

I've installed PostgreSQL 9.1 x64 on a Windows 7 Enterprise x64 system using the usual install method. The computer has a Novell Client for Windows, and a ZENworks Adaptive Agent, which I suppose ...