Sample scripts


Internet Information Server (IIS)
   IIS 6.0
      Applications and Application Pools
          List Application Configuration Cache Options , WMI

' List Application Configuration Cache Options


strComputer = "."
Set objWMIService = GetObject _
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
& strComputer & "\root\microsoftiisv2")

Set colItems = objWMIService.ExecQuery _
("Select * from IIsWebServiceSetting")

For Each objItem in colItems
Wscript.Echo "ASP Disk Template Cache Directory: " & _
objItem.AspDiskTemplateCacheDirectory
Wscript.Echo "ASP Maximum Disk Template Cache Files: " & _
objItem.AspMaxDiskTemplateCacheFiles
Wscript.Echo "ASP Script Engine Cache Maximum: " & _
objItem.AspScriptEngineCacheMax
Wscript.Echo "ASP Script File Cache Size: " & _
objItem.AspScriptFileCacheSize
Next


VbsEdit includes all these samples!


This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit.
The evaluation version never expires.




Home  

Copyright © 2001-2016 Adersoft