locked
Windows service start failed Error Code 2 RRS feed

  • General discussion

  • Hi

    I have modified the xCmd (alternate to psexec as can't use it) and using the StartService ("http://msdn.microsoft.com/en-us/library/windows/desktop/aa393660%28v=vs.85%29.aspx") function with the following options

    StartService( hService, 0, NULL )

    It is working fine with windows xp and windows 2008 server. But problem arises when there is an antivirus running on the server and the service starting failed.But the service executable file is successfully copied to the remote %SystemRoot%\system32 and the service is installed successfully and it shows in the services.Additionally I checked the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\<my service name> and its ImagePath properties which gave me the exact location of the service (which is %SystemRoot%\system32\<my service name>.exe).

    Am I missing something here?

    Please help me out

    Regards

    Arpan





    • Edited by Arpan88 Wednesday, October 31, 2012 5:02 AM
    • Moved by litdev Wednesday, October 31, 2012 6:39 PM (From:Small Basic)
    Wednesday, October 31, 2012 5:01 AM