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.

More information at:

http://msdn.microsoft.com/en-us/library/d56de412(v=vs.80).aspx

http://en.wikipedia.org/wiki/Windows_service

430 questions
4
votes
3 answers

Error: "'net' is not recognized as an internal or external command, operable program or batch file"

Has anyone seen this error on an XP desktop machine before? 'net' is not recognized as an internal or external command, operable program or batch file. It's being used in a 'net start iisadmin' script
Hawkeye
  • 2,699
  • 9
  • 30
  • 35
4
votes
9 answers

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 dependencies) and the error way same. then I tried to…
4
votes
1 answer

CloudFormation - How to start a Windows Service with cfn-init

I'm creating a CloudFormation Stack that will install and start a service on a Windows Instance. I've figured out how to install the service, but how do I start the service using cfn-init? The examples seem to all use linux, as there is a…
Edwin
  • 1,041
  • 7
  • 17
4
votes
1 answer

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 to watch the file handles for the service to see…
Marcel Janus
  • 1,115
  • 2
  • 14
  • 29
4
votes
3 answers

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 if the call is initiated manually in a Remote…
zashu
  • 143
  • 6
4
votes
1 answer

Method to migrate a windows service from one server to another

I'm setting up a staging server to test out an upgrade of some critical software (IBM Rational Team Concert on WebSphere) I'm not going to be able to re-install the app as I don't have all the info and config used during the original install, so my…
barnyr
  • 236
  • 1
  • 2
  • 5
4
votes
1 answer

"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: SC.EXE config MyService depend= MSSQL$SQL11 everything…
Joe Schmoe
  • 315
  • 7
  • 15
4
votes
3 answers

.\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 externally manages some of the users/policies for the…
Mike T
  • 751
  • 2
  • 8
  • 10
4
votes
2 answers

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 Environment variable. But its falling as it cant…
4
votes
2 answers

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 svchost.exe isn't the issue. I'm guessing there is some…
jayrdub
  • 338
  • 5
  • 13
4
votes
3 answers

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 a fairly short time). The one snag we have run…
4
votes
1 answer

run schedule task before windows service starts

I want to run a schedule task before a specified windows service (Service A). Service A starts automatically. What is the best approach to take? Do I need to convert the schedule task into a service (Service B) and configure Service A to depend on…
4
votes
1 answer

Will restarting the W3SVC Web Publishing Service, also restart the app pool in IIS?

Background: I'm trying to stop and start IIS on a windows 7 build box, in order to run acceptance tests. But from what I have read, most of the remote web management features have been disabled by Microsoft in a retarted attempt to sell more…
Mark Rogers
  • 279
  • 1
  • 4
  • 14
4
votes
2 answers

tomcat 6 start mode setting for production

Tomcat 6 (as a windows service) seems to have a 'Start Mode' with options of 'java, jvm or exe' which can be set via the Tomcat Monitor (system tray icon). if I set this to 'java', I can see a forked 'java.exe' process for tomcat, if I chose either…
Ryan Fernandes
  • 312
  • 5
  • 19
3
votes
0 answers

Unable to start golang executable as windows service

I want to start a windows service written in golang on my Windows server build 1803. The golang script uses the service wrapper found here: https://github.com/kardianos/service The service is located at C:\Program Files\Monitoring\monitor.exe. After…