code_junkie

What does an IISReset do?

Nov 10th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. public partial class Recycle : System.Web.UI.Page
  2. {
  3. protected void Page _Load(object sender, EventArgs e)
  4. {
  5. HttpRuntime.UnloadAppDomain();
  6. }
  7. }
  8.  
  9. C:>iisreset /?
  10.  
  11. IISRESET.EXE (c) Microsoft Corp. 1998-1999
  12.  
  13. Usage:
  14. iisreset [computername]
  15.  
  16. /RESTART Stop and then restart all Internet services.
  17. /START Start all Internet services.
  18. /STOP Stop all Internet services.
  19. /REBOOT Reboot the computer.
  20. /REBOOTONERROR Reboot the computer if an error occurs when starting,
  21. stopping, or restarting Internet services.
  22. /NOFORCE Do not forcefully terminate Internet services if
  23. attempting to stop them gracefully fails.
  24. /TIMEOUT:val Specify the timeout value ( in seconds ) to wait for
  25. a successful stop of Internet services. On expiration
  26. of this timeout the computer can be rebooted if
  27. the /REBOOTONERROR parameter is specified.
  28. The default value is 20s for restart, 60s for stop,
  29. and 0s for reboot.
  30. /STATUS Display the status of all Internet services.
  31. /ENABLE Enable restarting of Internet Services
  32. on the local system.
  33. /DISABLE Disable restarting of Internet Services
  34. on the local system.
Add Comment
Please, Sign In to add comment