ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash



 Top ASP 101 Stories Top ASP 101 Stories
An Overview of ASP.NET
Connections, Commands, And Procedures
What is ASP?

QUICK TIP:
Make Access Write Your SQL For You
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates


Quick Tips


IIS Reset

Starting with Windows 2000, there's an easy way to reset IIS. No longer do you need to issue endless net stop and net start commands to cycle all the services. IISReset to the rescue. Instead of me rambling on about how great it is I'll simply leave you with text from the help screen:

IISRESET.EXE (c) Microsoft Corp. 1998-1999
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.

And no you're not halluinating... that was a computer name on the command line. It works on remote machines too so you don't even have to walk all the way across your office to your web server!


Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to: webmaster@asp101.com.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers