command script to refresh the IIS world

This is a command script I use to reset the iMIS world completely in my local development environment, making sure nothing's cached in IIS or ASP.NET.  The script stops the Publishing and Workflow services, stops IIS, deletes the files in the ASP.NET cache, starts everything back up, and recycles the application pool used by iMIS.

Copy the lines below and save them in a .cmd file.  It needs to be run as administrator. 

** corrected 22Sept2010 to add the /s switch to the attrib command

net stop AsiPublishing15
net stop AsiWorkflow15
iisreset /stop
attrib -r "%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*" /s
del "%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*" /s /q
iisreset /start
net start AsiPublishing15
net start AsiWorkflow15 
%WINDIR%\System32\inetsrv\appcmd recycle apppool "Classic .NET AppPool"
pause

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Good stuff

Thanks for the tip.  I've had versions that were part of this according to my needs.  Good to have an authoritative model.
--
Bruce Wilson
Director, Technical Services
RSM McGladrey, Inc.