windows server 2008 - service job
Hi
I have a service that running under windsor server 2008 (computer/manage/serice...). When I start the service it give me an error - window could not start service XYZ - the system could not found the file specified.
When I look into it the target file (a exe file) is in the wrong path. Windows is saying it try to execute c:\abc\xyz.exe but the file is in c:\efg\xyz.exe.
What is the best option to fix the problem now. This service is added in by an application that we purchased. there is no such folder as abc right now as we install the package in folder efg.
The installation process and documentation never tell us that we can't install to folder other than the default folder? Can i just create another folder and move the exe over?
thx, Ted.
November 17th, 2010 2:56pm
Rather than moving executable (which may work if the exe is not going to look for other files in that directory)
Here are some options:
1) delete this service and just recreating a new one. update the properties. You can use the SC command to manage services.
2) service info is stored in the registry. You can simply go in there and update the information.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\serviceName
Image Path = change the path to the correct location
This is all assuming that the application (once you get the service running) itself doesnt have anything else hard coded to look in the expected location.
Visit: anITKB.com, an IT Knowledge Base.
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2010 7:11pm


