Create new service in Windows Server 2008.
Posted on 2012-08-30
In windows 2000, we have used following syntax to create new service.
From resource kit folder :
Instsrv.exe myservice “C:\Program Files\Resrouce Kit\srvany.exe”
And We migrted recently to windows 2008 and want to create same service in 2008..
what i did was i took srvany.exe from 2003 and put into 2008 (c/windows/system32) and executed following command from c prompt..
sc create myservice binPath=“C:\windows\system32\srvany.exe”
when i execute above command, it is showing description, usage, help etc.. but it is not sucessfully creating my service.
Can you please help me..