Is there a Run command the will start IIS Webservices? (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


DaveKstl -> Is there a Run command the will start IIS Webservices? (6/30/2004 9:48:45)

I have IIS Web Services running in 2000pro. Presenlty I go into Computer Management to Start and Stop the services which is running in the manual mode.

I am trying to make this easier - less steps. So I thought the a batch file might work.

Is this possible and if so what are the commands to start and stop web services?

Thanks

Dave K




danrendrag -> RE: Is there a Run command the will start IIS Webservices? (6/30/2004 19:06:23)

Yes - IISRESET

Copied from commandline help

Usage:
iisreset [computername]

/RESTART - Stop and then restart all Internet services.
/START - Start all Internet services.
/STOP - Stop all Internet services.
/REBOOT - Reboot the computer.
/REBOOTONERROR - Reboot the computer if an error occurs when starting, stopping, or restarting Internet services.
/NOFORCE - Do not forcefully terminate Internet services if attempting to stop them gracefully fails.
/TIMEOUT:val - Specify the timeout value ( in seconds ) to wait for a successful stop of Internet services. On expiration of this timeout the computer can be rebooted if the /REBOOTONERROR parameter is specified. The default value is 20s for restart, 60s for stop, and 0s for reboot.
/STATUS - Display the status of all Internet services.
/ENABLE - Enable restarting of Internet Services on the local system.
/DISABLE - Disable restarting of Internet Services on the local system.

End of Help

- Omit computername if on localhost




DaveKstl -> RE: Is there a Run command the will start IIS Webservices? (7/1/2004 7:01:59)

Thanks

Dave




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
3.515625E-02