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.
46
questions
169
votes
5
answers
283k
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 ...
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 ...
70
votes
9
answers
223k
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?
66
votes
5
answers
196k
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....
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 ...
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 ...
27
votes
3
answers
15k
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 "...
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.
7
votes
2
answers
37k
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 ...
4
votes
2
answers
8k
views
Win Service running under LocalService account cannot access environment variables
I am looking for prove or disprove of my theory. We have windows service which runs under LocalSystem account. the service is calling msbuild and builds csproj (Visual Studio project) file, which use ...
2
votes
1
answer
995
views
What is required for logging start/stop of the service?
I would like to log entry when some service was started/stopped. For example this post (Last restart/start time of a windows service) explains how to view logs.
The problem is, when I start/stop ...
0
votes
4
answers
418
views
Why some XP installs don’t automatically Start SQL2005 Service (Instance)
I have a number of XP machines that have a SQL 2005 Instance running on them, and they are set to start automaticly in Service Control Manager.
On 1 or 2 of these machines when you reboot, the SQL ...
25
votes
10
answers
293k
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 ...
22
votes
6
answers
159k
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 ...
16
votes
9
answers
31k
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/...
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
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?
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 ...
7
votes
4
answers
9k
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 ...
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 ...
6
votes
1
answer
13k
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 ...
6
votes
2
answers
8k
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
(...
5
votes
4
answers
31k
views
Configuring a service to be started under Local Service account from command line
How can this problem be solved?
I know there is a sc utility, but I don't know how to assign the Local Service account to the obj parameter (because of the spaces in the name), and how to assign a ...
5
votes
2
answers
14k
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
3
answers
12k
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 ...
3
votes
1
answer
22k
views
Event logger won't start: error 2 The system cannot find the file specified, Windows server 2008R2
NOTE: this is a "spawn" of a previous post which dealt with 2 different issues and became too lengthy, so I decided to clean the original question and post this issue in a separate question
When I ...
3
votes
2
answers
5k
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
3
answers
6k
views
How to find out what parameter was passed to a Windows Service
How do you find out what parameter was passed when starting a Windows service?
I usually start a service thru net start by passing parameters as shown below
net start DocumentHashService /Recursive /...
3
votes
2
answers
2k
views
Deploying C# Windows Service in multiple servers
I've created a C# windows service and its ready to be deployed. I have 215 servers on which this windows service is to be installed.
I have to login to each box and deploy the service. Is there an ...
3
votes
1
answer
2k
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 ...
2
votes
1
answer
11k
views
Remove active directory certificate services role
I have logged in as Administrator to my windows 2012 server.
I just installed active directory certificate services role, now I want to remove it (as this service prevents me from adding my server to ...
2
votes
3
answers
29k
views
Windows: Can I map a network drive for a service account?
The title says it all, really.
Is it possible to create a network drive mapping that is visible to a service? Supposing the service runs under a domain account that has permissions to the share, of ...
2
votes
3
answers
3k
views
Printing from a windows service in one domain to a print server in another windows domains without trust
I face the the following problem:
We have one Windows domain with an application running in an user context of user of this domain (let's call this domain "A"). This Windows service has to print to an ...
2
votes
2
answers
4k
views
Windows Service dependencies
I have a Windows service A that depends on service B.
According to this Microsoft KB article I can add a registry key to tell Windows to wait until B starts before starting A.
Can I therefore expect ...
2
votes
2
answers
3k
views
Provide a user with service start/stop permissions
I have a very basic domain that I use for development. I want to create a GPO that provides users in the Backup Operators group with start/stop permissions for two specific services on a specific ...
1
vote
3
answers
14k
views
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. ...
1
vote
1
answer
2k
views
How to change the user iis 5 service runs on?
I have IIS 5 running over XP.
I was told to change it such that the iis process does not run under the system account.
Where do I change this?
1
vote
3
answers
11k
views
How do I grant users the ability to install windows services?
I'd like to be able to allow the development team to install services on a Win2003 server. They can already connect via RDP/FTP with limited accounts but I'd like to be able to grant installation ...
1
vote
0
answers
8k
views
base filtering engine fails to start - error 5 access denied. Server 2008 R2
We had a major server fault over the weekend where some hard drives and the mainboard's raid controller failed.
Mainboard and HDD's replaced - the Windows Server 2008 R2 is loading up, but many of the ...
1
vote
1
answer
6k
views
Trouble with interactive service on Windows Server 2012
I have a service (an old 4D-based application) which has been happily running on Windows Server 2003. With the pending EOL for 2003, I'm trying to migrate to a new 2012R2 host.
I set up the service ...
0
votes
0
answers
451
views
How to run docker services with an application account?
How do I change the windows services account for docker?
The Windows services are Docker Desktop Service and docker.
When I set then to use an application account, it returns the following error:
...
0
votes
1
answer
1k
views
Error trying to reset service account password
Some background:
I installed Windows Server Essentials and ran the Essentials Configuration Wizard, which created a new AD forest with a single domain.
However, I needed the AD from a previously-...
0
votes
1
answer
767
views
How do I setup a "service account" for apache on XP pro?
This question has been spawned from this:
VPC running WinXP SP3 with WAMP: 403 error on network drive
The real question:
Basically i need to know how to setup a "service account" that apache can ...
0
votes
3
answers
1k
views
How do you start ColdFusion MX 7?
I'm running it on a Windows 2003 machine.
I can start it from the C:\CFusionMX7\bin\cfstart.bat, but when I close the command prompt window, it shuts down again.
Is there another method for starting ...
0
votes
1
answer
760
views
SQL Server 2005 on 2008 DC - Cannot change service user
I cannot start SQL Server 2005 transactional replication after I promoted my 2008 Server to a DC.
A required privilege is not held by
the client.
This site suggests that I need to change the SQL ...
-2
votes
2
answers
5k
views
Powershell script to restart automatic Windows services and notify if failed
I found a Powershell script that checks all automatic services on Windows servers and if they are not started, tries to start them. Here is the link http://doitcloudy.blogspot.de/2014/07/...