让IIS建立的站点默认是.net 2.0的,而不是.net 1.1的代码
时间:2020-07-24 11:48 来源/作者:VBS教程网
-
'
-
-
-
-
-
-
-
-
-
-
-
-
WScript.Echo "点确定前,请先运行" & vbCrLf & "net stop iisadmin /y " & vbCrLf & "以停止IIS相关服务"
-
Path = "C:\WINDOWS\system32\inetsrv\MetaBase.xml"
-
Node = "//configuration/MBProperty/IIsWebService"
-
Set XmlDom = CreateObject("MSXML2.DOMXmlDomument")
-
XmlDom.async = False
-
XmlDom.load(Path)
-
ScriptMaps = XmlDom.selectSingleNode(Node).getAttribute("ScriptMaps")
-
ScriptMaps = Replace(ScriptMaps, "v1.1.4322", "v2.0.50727")
-
XmlDom.selectSingleNode(Node).setAttribute("ScriptMaps") = ScriptMaps
-
XmlDom.Save(Path)
-
WScript.Echo "OK,请运行" & vbCrLf & "iisreset" & vbCrLf & "重启IIS相关服务"
相关文章
热门资讯