求助:如果用脚本来启用IIS虚拟目录中的父路径和web服务器扩展
因为我在IIS6上安装一个网站,我不想安装程序后再让用户设置IIS了,我想在安装的时候,用脚本来设置一下!请问如果用脚本来启用IIS虚拟目录中的父路径和web服务器扩展
------解决方案--------------------AspEnableParentPaths
http://www.microsoft.com/technet/scriptcenter/scripts/iis/iis6/web/i6wevb14.mspx
strComputer = ". "
Set objWMIService = GetObject( "winmgmts:{authenticationLevel=pktPrivacy}\\ " & strComputer & "\root\microsoftiisv2 ")
Set colItems = objWMIService.ExecQuery( "Select * from IIsWebServiceSetting ")
For Each objItem in colItems
objItem.AspEnableParentPaths = -1
objItem.put_
Next