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
2
votes
0 answers

The Diagnostic Service Host failed to start due to the following error

I am receiving the following error in my System event log: Service Control Manager, Event ID 7000 The Diagnostic Service Host failed to start due to the following error: A privilege that the service requires to function properly does not exist in…
Arindrew
  • 31
  • 1
  • 1
  • 3
2
votes
0 answers

Limit amount of allocateable memory for process

I've got a windows service written in C#, that does some heavy work (irrelevant for the question) running on a remote machine (Windows Server 2008). Every now an then a client application contacts the service. The service starts its work and…
2
votes
1 answer

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 a domain) but the roles are grayed out. What can…
2
votes
1 answer

Run Service Control (sc.exe) command on secure port

Our team runs the following commands to turn on and off Windows Services (e.g. JBoss Native) from the Windows command line as well as through source code in a program. It connects to a remote box. We are now placing this box (\DEV-A1) into our…
JustBeingHelpful
  • 1,964
  • 7
  • 37
  • 53
2
votes
7 answers

How to prevent Hamachi service stop when Remote Desktop disconnects on Windows XP?

I have a Windows XP SP2 machine with Hamachi service running. Usually I connect to it using Remote Desktop, and when I disconnect I can't connect to it again because the Hamachi VPN is down. How to prevent the Hamachi service to stop? I am sure…
Jader Dias
  • 4,705
  • 19
  • 50
  • 51
2
votes
2 answers

Why would I need the "Plug and Play" service in a Windows Server hosted in a VM?

I'm reviewing the logs of a Windows Server 2008 R2 server which is running inside a VM. The server hosts an Azure web role. The logs contain this record: The Plug and Play service entered the running state This is completely unattended server…
sharptooth
  • 2,739
  • 4
  • 32
  • 40
2
votes
2 answers

Is it possible to create a delayed start dependency on something other than another service?

I have a service that starts delayed (auto), and I want to create a dependency on a WMI query. It would query WMI and wait until the query returns true before starting the serivce. Is that possible?
EGr
  • 609
  • 4
  • 14
  • 29
2
votes
1 answer

How to make a Windows service start before another at Windows startup

Is it possible to make a Windows service (third-party one, I don't control its code) to start only after a service I own? I need that to connect to a device which is blocked by the third-party service.
fjsj
  • 123
  • 1
  • 6
2
votes
1 answer

Run php exec function to stop windows services

I have written a web program in php that needs to stop a windows service and start's it when run like this: exec('net stop spooler'); //to stop printer spooler exec('net start spooler'); //to start printer spooler the above codes doesnt stop the…
2
votes
1 answer

Add new dependency to a Windows Service that already has dependencies

I want to add via Batch script a new service-dependency to an existing service with old dependencies, without deleting these dependencies. I know the command sc config ServiceA depend= ServiceB/ServiceC/ServiceD can add multiple dependencies, but I…
Reflection
  • 123
  • 1
  • 4
2
votes
1 answer

net use encountering "System error 67 has occurred." when trying to map from script running as service

I have a service running, on windows Server 2008 R2, which requires access to a webdav mapped drive, for copying file dependencies. Everything works when I run net use from command prompt: net use z: https://domain.com/webdav /user:thisuser…
Jason Huntley
  • 1,253
  • 3
  • 10
  • 22
2
votes
3 answers

Why process running as Local System accessing a UNC share being seen as NT AUTHORITY\ANONYMOUS LOGON?

I have a Windows Service running as Local System on SERVER_X which is attempting to access a script on a UNC share hosted on SERVER_Y. Per the links below, I've granted the computer account of SERVER_X access to the UNC on SERVER_Y. How to grant…
2
votes
1 answer

unable to set service user account via command line

I am writing a puppet script to automate creation of TeamCity agents on Windows 2008 R2 SP2.For this, I need to set a custom TeamCity service user account via command-line. So far, I have tried this sequence of commands: 1) Grant my custom account…
2
votes
1 answer

How can I transfer a certificate from an account to another on Windows

Long story short, I have some configuration file for a tool containing sensitive information and the client want them encrypted. I want to use EFS for this, but there is a problem : the account doing the installation (and so the encryption) can not…
2
votes
0 answers

Configuring Service Login Credentials with Group Policy following MS14-025

With Microsoft security bulletin MS14-025, GPMC and related tools are now patched to no longer allow the use of configuration items within Group Policy Prefs that would embed obfuscated passwords. The bulletin references KB256345 as workaround using…
Ryan Bolger
  • 16,755
  • 4
  • 42
  • 64