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.
4
votes
3answers
8k 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 ...
11
votes
5answers
15k 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?
32
votes
3answers
30k 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 ...
2
votes
5answers
12k 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: ...
7
votes
2answers
574 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.
0
votes
1answer
125 views
Stopping IIS service
I've got IIS setup on my computer. I stopped it in order to start wamp/apache. so, I stopped the World Wide Web service in the services MMC snap-in and started wamp. but I still can't get wamp login ...
0
votes
4answers
358 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 ...
15
votes
4answers
36k 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 ...
7
votes
7answers
61k 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 ...
4
votes
2answers
2k 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 ...
4
votes
2answers
6k 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 ...
1
vote
3answers
3k 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 ...
5
votes
4answers
2k 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 ...
3
votes
1answer
205 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
2answers
161 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 ...
2
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 ...
1
vote
3answers
400 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 ...
1
vote
1answer
57 views
Windows Service executing an executable
I have a Windows Service that simply listens for certain events. Once triggered, the service executes a process (.exe).
My problem:
On windows server 2003, this works great. CPU for the executable ...
1
vote
3answers
6k 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. ...
0
votes
2answers
398 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 ...
0
votes
1answer
493 views
How do I setup a “service account” for apache on XP pro?
This question has been spawned from this:
http://serverfault.com/questions/195675/vpc-running-winxp-sp3-with-wamp-403-error-on-network-drive
The real question:
Basically i need to know how to setup ...
0
votes
1answer
594 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?
0
votes
3answers
867 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
1answer
478 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 ...