Monday, August 10, 2009

Windows NT Service configuration

To debug current Windows Service configuration, try 'sc' on a command console.

For example 'sc query' pretty much shows the same configuration information as the registry tree which defines Windows services:

My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

There's an interesting Windows Resource Kist that includes service configuration tools.

For example instsrv.exe to run ANY other .exe application as Windows service

C:\Program Files\Windows Resource Kits\Tools>instsrv.exe AAA "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"

The service was successfuly added!

C:\Program Files\Windows Resource Kits\Tools>instsrv.exe AA REMOVE

No comments:

Post a Comment