Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Application Pools Recycling PropertiesContent of Modify Application Pools Recycling Properties.vbsMD5 Hash: 3BD44D301BA878C2E82BBFE0E6B4948D |
||
' Description: Demonstration script that modifies IIS application pools recycling settings.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery _ ("Select * from IIsApplicationPoolsSetting") For Each objItem in colItems objItem.PeriodicRestartMemory = 1000000 objItem.PeriodicRestartPrivateMemory = 1000000 objItem.PeriodicRestartRequests = 5 objItem.PeriodicRestartTime = 3480 objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |