jueves, 10 de marzo de 2011

Recycling Pool

I need to recycle application pool every time for SharePoint 2007 application page debug, so i searched for PowerShell script out there and ended with this option:

PS > (Get-WmiObject -class "iisapplicationpool" -namespace "root\microsoftiisv2"
-filter "Name='W3SVC/AppPools/DefaultAppPool'").Recycle()

here DefaultAppPool is the name of your application pool under the tree of IIS admin, so you must change on demand

this works fine for IIS6 on windows server 2003 R2 64bits, and power shell 1.0
It should work for power shell 2.0 and Win2008R2

No hay comentarios:

Datos personales