2011-07-25 16 views

Respuesta

12

SC debería ser capaz de manejar esto, ¿recibe algún error?

Esto establecería el tipo de inicio a manual para un servicio llamado 'Apache':

SC \\computername CONFIG apache start= demand 
+2

Sí funciona. Mi error fue en la parte _start = demand_ que no puse un espacio después del signo igual. Gracias. – Mamadex

0

acabo de aplicar el mismo propósito --CAMBIA SERVICIO DE PUESTA EN MARCHA WIN METHOD-- en una máquina remota ..

C:\MrCMD> REG QUERY \\RemoteHostName\HKLM\SYSTEM\CurrentControlSet\Services\WUAUServ 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ 
    Type REG_DWORD 0x20 
    Start REG_DWORD 0x2 
    ErrorControl REG_DWORD 0x1 
    ImagePath REG_EXPAND_SZ %systemroot%\system32\svchost.exe -k netsvcs 
    DisplayName REG_SZ Automatic Updates 
    ObjectName REG_SZ LocalSystem 
    Description REG_SZ Enables the download and installation of Windows updates. If this service is disabled, this computer will not be able to use the Automatic Updates feature or the Windows Update Web site. 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ\Parameters 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ\Security 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ\Enum 

┌─────────────────────────────────────┐ 
│ Executed Mon 01/14/2013 14:27:15.31 │ As [MrCMD] 
└─────────────────────────────────────┘ 

C:\MrCMD> REG ADD \\RemoteHostName\HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /V Start /T REG_DWORD /d 0x3 
Value Start exists, overwrite(Yes/No)? y 
The operation completed successfully. 

┌─────────────────────────────────────┐ 
│ Executed Mon 01/14/2013 14:29:57.72 │ As [MrCMD] 
└─────────────────────────────────────┘ 

C:\MrCMD> REG QUERY \\RemoteHostName\HKLM\SYSTEM\CurrentControlSet\Services\WUAUServ 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ 
    Type REG_DWORD 0x20 
    Start REG_DWORD 0x3 
    ErrorControl REG_DWORD 0x1 
    ImagePath REG_EXPAND_SZ %systemroot%\system32\svchost.exe -k netsvcs 
    DisplayName REG_SZ Automatic Updates 
    ObjectName REG_SZ LocalSystem 
    Description REG_SZ Enables the download and installation of Windows updates. If this service is disabled, this computer will not be able to use the Automatic Updates feature or the Windows Update Web site. 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ\Parameters 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ\Security 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WUAUServ\Enum 

┌─────────────────────────────────────┐ 
│ Executed Mon 01/14/2013 14:30:37.80 │ As [MrCMD] 
└─────────────────────────────────────┘ 

eso es todo amigos .. :)

Cuestiones relacionadas