Utility to Recycle Application Pool

As SharePoint Developers we have to quite often Recycle the application pool after deployment of our assemblies in GAC I have developed a small VBScript which I always add to my task bar to recycle the application pool of web application hosting my solution package.
Copy this script in a vbscript file (.vbs)  and keep a short cut in quick launch by this we can avoid using iisreset.
** please replace <<Server Name>> by your server name and <<AppPoolName >> by application pool name of your web application
strServerName = <<Server Name>>
strAppPoolName =<<AppPoolName >>
set objAppPools = GetObject("IIS://" & strServerName & "/w3svc/AppPools/" & strAppPoolName & "")


Popular Posts