Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Application Pools Health PropertiesContent of Modify Application Pools Health Properties.vbsMD5 Hash: 7179EFFBBE5805C7D381F29C92B0C8B2 |
||
' Description: Demonstration script that modifies IIS application pools health properties.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery _ ("Select * from IIsApplicationPoolsSetting") For Each objItem in colItems objItem.PingingEnabled = True objItem.PingInterval = 60 objItem.RapidFailProtection = True objItem.RapidFailProtectionInterval = 10 objItem.RapidFailProtectionMaxCrashes = 10 objItem.ShutdownTimeLimit = 120 objItem.StartupTimeLimit = 120 objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |