E
ernpal
The company I work for has some sort of script (or something) that
issues a command(s) that stops my WWW Publishing sercvice. I can
manually start the service, and it'll work until the next time the
script runs. I have tried scheduling a batch file to run a .reg file
that would allegedly start the service. But it doesn't work. It will
change what is displayed in Services mmc, but it doesn't seem to
actually start the service. In fact, after doing this, the service
cannot be manually started until after I change its startup type, hit
apply, and then change the start-up type back to manual or auto.
This is the code for the .BAT file:
@echo off
REM re-enabe and start "World Wide Web Publishing" service (W3SVC)
REM set service startup type to "Automatic"
echo World Wide Web Publishing - Startup type: Automatic
echo
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
echo "Start"=dword:00000002
echo.
regedit /s W3Svc_Auto.reg
REM start service
net start "World Wide Web Publishing"
rem pause
This is the code for W3Svc_Auto.reg:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
"Start"=dword:00000002
Thanks for your help,
Ernest Pallares
issues a command(s) that stops my WWW Publishing sercvice. I can
manually start the service, and it'll work until the next time the
script runs. I have tried scheduling a batch file to run a .reg file
that would allegedly start the service. But it doesn't work. It will
change what is displayed in Services mmc, but it doesn't seem to
actually start the service. In fact, after doing this, the service
cannot be manually started until after I change its startup type, hit
apply, and then change the start-up type back to manual or auto.
This is the code for the .BAT file:
@echo off
REM re-enabe and start "World Wide Web Publishing" service (W3SVC)
REM set service startup type to "Automatic"
echo World Wide Web Publishing - Startup type: Automatic
echo
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
echo "Start"=dword:00000002
echo.
regedit /s W3Svc_Auto.reg
REM start service
net start "World Wide Web Publishing"
rem pause
This is the code for W3Svc_Auto.reg:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
"Start"=dword:00000002
Thanks for your help,
Ernest Pallares