如何从脚本创buildIIS6中的网站应用程序?
我很抱歉这个问题有多简单,但是我在互联网上search了很多东西,并且find了有关创build应用程序池的 MSDN文章( http://msdn.microsoft.com/zh-cn/library/ms525309.aspx )和使用IIS 7但没有关于IIS 6和应用程序。 我目前使用下面的代码来创build一个应用程序并设置其属性: Set oWebAdmin = GetObject("winmgmts:root\WebAdministration") ' Define the Path, SiteName, and PhysicalPath for the new application. strApplicationPath = "/B2" strSiteName = "Default Web Site" strPhysicalPath = "C:\inetpub\wwwroot" ' Create the new application oWebAdmin.Get("Application").Create "/B2", "Default Web Site", "C:\Inetpub\wwwroot\B2" Set app = oWebAdmin.Get("Application.SiteName='Default Web Site',Path='/B2'") app.AuthFlags = 21 app.NTAuthentication="yourfriendlydomain.helloworld.com" 但是,我得到0x8004100E(命名空间指定无法find。),我还没有得到如何进行最微不足道的想法。