Stop an Application Pool

Stops the MSSharePointAppPool application pool.

VBScript Code


strComputer = "LocalHost"
Set objIIS = GetObject _
    ("IIS://" & strComputer & "/W3SVC/AppPools/MSSharePointAppPool")

objIIS.Stop