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.

Filter by
Sorted by
Tagged with
168 votes
5 answers
277k 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 ...
Rick's user avatar
  • 1,825
69 votes
9 answers
217k 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?
Liam's user avatar
  • 1,401
66 votes
5 answers
193k 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 services....
abitgone's user avatar
  • 1,343
42 votes
8 answers
271k 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?
Joshua's user avatar
  • 779
39 votes
3 answers
97k 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 ...
user149691's user avatar
34 votes
6 answers
76k 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 ...
user avatar
29 votes
6 answers
264k 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 ...
Rasmus Faber's user avatar
27 votes
3 answers
14k views

How can I programmatically cause a new Windows user's profile to be created?

I'm creating a (local) user for a Windows service to run as. I've got good reasons for not wanting to use NETWORK SERVICE, LOCAL SERVICE, or LOCAL SYSTEM. I create the user via net user foobar "...
Peter Mounce's user avatar
  • 1,263
27 votes
5 answers
6k 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?
jldugger's user avatar
  • 14.4k
24 votes
10 answers
290k 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 ...
abyx's user avatar
  • 403
23 votes
4 answers
55k views

Set service StartType to Automatic - Delayed

Using Set-Service, I'm able to change the StartType of my services between the accepted values of Boot, System, Automatic, Manual, Disabled. Using services.msc, I'm able to set some services to ...
Peter Vandivier's user avatar
22 votes
1 answer
73k 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 ...
R1cky's user avatar
  • 363
20 votes
6 answers
155k 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: To ...
sbi's user avatar
  • 463
19 votes
6 answers
92k 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: [SC]...
Jared's user avatar
  • 519
16 votes
1 answer
19k 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
Giuseppe Romagnuolo's user avatar
16 votes
1 answer
18k 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 ...
ervingsb's user avatar
  • 395
16 votes
9 answers
29k 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: http://mercurial.selenic.com/wiki/...
TN.'s user avatar
  • 567
15 votes
4 answers
149k views

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 "...
vikas's user avatar
  • 349
15 votes
2 answers
30k 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 start=...
Tola Odejayi's user avatar
14 votes
1 answer
3k 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 ...
Massimo's user avatar
  • 70.7k
13 votes
4 answers
46k views

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 ...
Graviton's user avatar
  • 2,905
12 votes
3 answers
71k views

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 ...
Stuyvenstein's user avatar
11 votes
6 answers
82k 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?
Jon's user avatar
  • 481
10 votes
2 answers
28k 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 ...
splattered bits's user avatar
10 votes
2 answers
20k 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 ...
Jalil's user avatar
  • 225
10 votes
2 answers
38k 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 ...
Brian T's user avatar
  • 203
10 votes
1 answer
9k views

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 ...
AnOldSoul's user avatar
  • 419
9 votes
4 answers
18k 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?
jdiaz's user avatar
  • 1,189
9 votes
1 answer
72k 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 ...
Kev's user avatar
  • 7,887
8 votes
4 answers
43k 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? ...
BeeOnRope's user avatar
  • 592
8 votes
4 answers
14k views

Windows: How to start docker VM att system boot

I'm in a situation where I need to run docker on a windows based build server (I'm normally working with Arch/Debian Linux) and I can't find a way to have the docker VM to start automatically on ...
tirithen's user avatar
  • 185
8 votes
5 answers
12k views

SSH Tunnel as a Windows Service [closed]

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. ...
Callum's user avatar
  • 181
8 votes
2 answers
93k views

What is SMS Agent Host?

What is SMS Agent Host service (CcmExec)? I have failed to find this information (e.g. there is no Wikipedia entry) - besides for information in some error cases on how to restart this service for ...
Peter Mortensen's user avatar
8 votes
3 answers
17k 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. ...
TimS's user avatar
  • 338
8 votes
3 answers
19k 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 ...
Damian Powell's user avatar
8 votes
2 answers
4k 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.
Sir Rippov the Maple's user avatar
8 votes
9 answers
61k views

Failed to connect to the System Event Notification Service

Several end-users try and log into their Windows 7 machine, they get a message, "failed to connect to the windows notification service" and it goes to a black screen and never actually loads their ...
Upgrayedd's user avatar
  • 141
8 votes
2 answers
38k views

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 ...
avj's user avatar
  • 183
8 votes
2 answers
3k 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 Service"...
JWood's user avatar
  • 263
7 votes
10 answers
37k 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 ...
Jason Baker's user avatar
  • 1,219
7 votes
6 answers
32k 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 ...
Andreas Grech's user avatar
7 votes
2 answers
18k views

Automate Windows Robocopy with internal changes monitor /MON:1 option

The /MON:1 option works just great and run directory scan if only changes happened. This is something that is not possible to do if robocpy is ran from windows scheduler each 10 min. Is there a way ...
user34402's user avatar
  • 271
7 votes
4 answers
8k 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 ...
Jez's user avatar
  • 1,423
7 votes
2 answers
36k 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 ...
jmservera's user avatar
  • 123
7 votes
2 answers
29k 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 ...
floyd's user avatar
  • 1,530
7 votes
3 answers
16k 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 ...
Instantsoup's user avatar
7 votes
4 answers
36k 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 ...
nmjk's user avatar
  • 278
7 votes
2 answers
12k views

Having to run IISRESET twice to start all IIS related services

Seems like when I do IISRESET from command prompt, I'm getting the restart error about 90% of the time. Running IIS7 on Win 2008. But I've seen the same thing with IIS6 and Win2003. Running ...
NealWalters's user avatar
  • 1,333
6 votes
3 answers
51k views

Disable windows file shares without losing share config

Background We're currently upgrading an old app from running on Windows Server 2003 to running it on Windows Server 2012. Users and other systems communicate with this system via HTTP (i.e. users ...
JohnLBevan's user avatar
  • 1,278
6 votes
2 answers
19k views

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

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

1
2 3 4 5
9