Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Web Site Service PropertiesContent of Modify Web Site Service Properties.vbsMD5 Hash: A018FA6EB2607476C813EA5D8B2A41BD |
||
' Description: Demonstration script that modifies IIS compression schemes property values.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery _ ("Select * from IIsCompressionSchemesSetting") For Each objItem in colItems objItem.HcCompressionDirectory = "C:\Compressed_Files" objItem.HcDoDynamicCompression = True objItem.HcDoStaticCompression = True objItem.DoDiskSpaceLimiting = True objItem.HcMaxDiskSpaceUsage = 200000000 objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |