Top "Windows-services" questions

Windows services are background service processes run by the Service Control Manager on Windows NT based operating systems, similar to daemons or UNIX services.

Killing EXCEL.exe Process from C# in a Windows Service

I have a windows service that opens up an Excel spreadsheet via the Microsoft.Office.Interop.Excel.Application object. Application …

excel windows-services office-interop office-automation
How to create windows service to run a powershell script?

I have infinite loop PowerShell (Testing purpose) script, which I want to run as a Service in Windows Server 2008 R2 (…

windows powershell windows-services powershell-2.0 windows-server-2008-r2
WCF NamedPipe CommunicationException - "The pipe has been ended. (109, 0x6d)."

I am writing a Windows Service with accompanying "status tool." The service hosts a WCF named pipe endpoint for inter-process …

c# wcf windows-services named-pipes
How can I mount a windows drive in Java?

We are working with some legacy code that accesses a shared drive by the letter (f:\ for example). Using the …

java windows-services unc
installing windows service with SC.exe or InstallUtil.exe - there is difference but which?

SC.exe and InstallUtil both install/uninstall windows services. But they don't seem to work the same way. What is …

.net windows-services installutil
MySql Notifier not able to start/stop/restart MySql Service

I've installed MySql 5.6 with Workbench and MySql Notifier. I can start/stop the MySql Service ( Service name : MySql56 ) from Services.…

mysql windows-services windows-7-x64 mysql-notifier
How can I set up .NET UnhandledException handling in a Windows service?

protected override void OnStart(string[] args) { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Thread.Sleep(10000); throw new Exception(); } void CurrentDomain_…

c# windows-services exception-handling unhandled-exception
System.Timers.Timer How to get the time remaining until Elapse

Using C#, how may I get the time remaining (before the elapse event will occur) from a System.Timers.Timer …

c# timer windows-services elapsedtime system.timers.timer
HTTP The service is starting or stopping. Please try again later error on windows 7

I used following command to stop the HTTP service net stop http /y And I got following error message: The …

windows-services httpservice
How to Start/Stop a Windows Service from an ASP.NET app - Security issues

Here's my Windows/.NET security stack: A Windows Service running as LocalSystem on a Windows Server 2003 box. A .NET 3.5 Website …

asp.net windows-services impersonation security