admin管理员组

文章数量:1192554

I can not make the command line "sc" to start a service in a remote server, it fails via the 1060 error. To check the correct service name, the service was started via the command line in the target server succesfully. To check networking and permissions, the service was started remotely using the "services.msc" windows app, without any problem.

In this particular case, is needed that the "sc" remote starts works as expected, because is used internally by an application to start the service on remote this way.

On the local server the following is command line used and the result:

*C:\Users\Administrador>sc \WIN-O6F2V54M862 start “CIMPLICITY” [SC] StartService: OpenService ERROR 1060:

El servicio especificado no existe como servicio instalado.

C:\Users\Administrador>*

(The message in spanish state "service does not exist")

To verify that the service name on the target server the command run locally and it was successful:

* C:\Users\Administrador>sc start "CIMPLICITY"

NOMBRE_SERVICIO: CIMPLICITY

    TIPO               : 110  WIN32_OWN_PROCESS  (interactive)
    ESTADO             : 2  START_PENDING

                            (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)

    CÓD_SALIDA_WIN32   : 0  (0x0)

    CÓD_SALIDA_SERVICIO: 0  (0x0)

    PUNTO_COMPROB.     : 0x0

    INDICACIÓN_INICIO  : 0x7d0

    PID                : 2480

    MARCAS         :

C:\Users\Administrador>*

I can not make the command line "sc" to start a service in a remote server, it fails via the 1060 error. To check the correct service name, the service was started via the command line in the target server succesfully. To check networking and permissions, the service was started remotely using the "services.msc" windows app, without any problem.

In this particular case, is needed that the "sc" remote starts works as expected, because is used internally by an application to start the service on remote this way.

On the local server the following is command line used and the result:

*C:\Users\Administrador>sc \WIN-O6F2V54M862 start “CIMPLICITY” [SC] StartService: OpenService ERROR 1060:

El servicio especificado no existe como servicio instalado.

C:\Users\Administrador>*

(The message in spanish state "service does not exist")

To verify that the service name on the target server the command run locally and it was successful:

* C:\Users\Administrador>sc start "CIMPLICITY"

NOMBRE_SERVICIO: CIMPLICITY

    TIPO               : 110  WIN32_OWN_PROCESS  (interactive)
    ESTADO             : 2  START_PENDING

                            (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)

    CÓD_SALIDA_WIN32   : 0  (0x0)

    CÓD_SALIDA_SERVICIO: 0  (0x0)

    PUNTO_COMPROB.     : 0x0

    INDICACIÓN_INICIO  : 0x7d0

    PID                : 2480

    MARCAS         :

C:\Users\Administrador>*

Share Improve this question edited Jan 24 at 18:48 Julio Navas asked Jan 24 at 18:44 Julio NavasJulio Navas 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

After some checking, with sc query, we realized that if we started the questioned service in the remote server FROM the remote server, it appears listed when a sc query was done in the local server. So, we tried to do the remote star, but not using quotes for the name of required service and works.

本文标签: Start service on remote server Windows server 2012 R2 via sc commandStack Overflow