Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行此脚本以将应用程序池分配给在 IIS 6 下运行的网站
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration") Set oSite = oWebAdmin.Get("Site.Name='Site'") oSite.ApplicationDefaults.ApplicationPool = "NewAppPool" oSite.Put_
此脚本无法在 IIS 6 下运行... 有什么问题吗?
谢谢,
Set objVirtualDirectory = GetObject( "IIS://localhost/" + strSitePath + "/ROOT" ) ' Assign the Pool to the Site objVirtualDirectory.AppPoolID = strAppPool objVirtualDirectory.AppFriendlyName = "me app" objVirtualDirectory.Put_()