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

Error 1069 the service did not start due to a logon failure

Our CruiseControl.NET service on Win2003 Server (VMWare Virtual) was recently changed from a service account to a user account to allow for a new part of our build process to work. The new user has "Log on as a service" rights, verified by checking…
si618
  • 151
  • 1
  • 1
  • 5
5
votes
4 answers

Will a Local System service notice changes to environment variables in Windows 2008 R2 without a reboot?

Microsoft has a knowledge base article, last reviewed in June 2007, which states: If you update environment variables or add new environment variables, you must restart the computer before the changes that you make affect services that run under…
5
votes
1 answer

Recommended Permissions for Virtual Service Accounts on Windows 7+

I'm trying to have an NSIS Installer install a custom service as part of an installation. It would be nice to run the service with one of those typical 'NT Service\xyz' style virtual service accounts available in Win 7 and newer. As you might have…
5
votes
1 answer

How to Get Company Name for a Windows Service Using Powershell

In order to be able to easily detect which of a group of security products is installed on a machine, I would like to be able to filter the Powershell Get-Service output by the Company Name attached to the service, but that information is not…
Keeloid
  • 105
  • 6
5
votes
2 answers

Using "sc" command to control services with whitespace in name

I need to stop service on remote machine. The problem is that service name contains whitespaces, and I get a message, that such service does not exist. sc \\machine stop "service name" How can I fix it? Thanks
Timofei Davydik
  • 153
  • 1
  • 1
  • 5
5
votes
2 answers

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 R2 Core). I don't mind whether it's cmd or a…
5
votes
4 answers

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 blank password (I assume Local Service account has a…
alh84001
  • 153
  • 1
  • 1
  • 3
5
votes
2 answers

Mapping Drive Error - System Error 1808

A vendor is attempting to map and preserve a network drive using nt authority/system; so it stays persistent when the interactive session of the server is lost. They were able to do this on one server (Windows 2008 R2) but not a second computer…
5
votes
2 answers

Windows Service Limit Crashes Services on Startup

We have developed a custom Windows service in C# as part of a large Enterprise application. Our QA department tests multiple versions of this service. The QA lab has several (over 20) copies of this service installed on one Windows 2003 test box. …
Paul Williams
  • 324
  • 2
  • 9
5
votes
2 answers

Error installing a .NET Windows service with InstallUtil

I keep getting the error below when every I try to use the InstallUtil to install my .NET service. I put "installutil myservice.exe" into command prompt and then get the error. Any idea of what the problem is? Do I need to add another…
Nick O
  • 195
  • 1
  • 6
4
votes
1 answer

Do group policy shutdown scripts run before Windows Services shut down?

You can have a [shutdown] section in group policy which specifies some scripts to run during system shutdown. Do all these scripts run before Windows services start receiving 'Preshutdown' notifications (if they registered for those) or get…
4
votes
3 answers

Windows Service vs. Task Scheduler with startup trigger

I'm running a desktop application as a service with the help of NSSM (Non Sucking Service Manager), which is a wrapper for applications which aren't made to run as a service to be run as a service. I use an old laptop with Windows 10 as a server by…
user3220145
  • 41
  • 1
  • 2
4
votes
3 answers

how to set permissions on a service

A Nessus plugin 44676 audit scan revealed this issue: "SMB Insecurely Configured Service" Description At least one insecurely configured Windows service was detected on the remote host. Unprivileged users can modify the properties of these affected…
Roman
  • 405
  • 1
  • 7
  • 21
4
votes
1 answer

Create service with encrypted password

I am creating an automated deployment script (as a bat file). Our applications are mostly windows services. I plan to use SC CREATE to create the service. The problem is with storing password as clear text in the script file. Is there any way that…
MKM
  • 43
  • 4
4
votes
5 answers

100% CPU use when new usb device plugged in - services.exe / windows server 2003

On my server I am trying to install a new usb drive but all that happens is the system starts using huge amounts of processor cycles with services.exe. On closer inspection with process explorer there is a thread with umpnpmgr.dll using most of the…
Will3265
  • 123
  • 1
  • 1
  • 5