vb スクリプトを使用して、IIS7 の 1 つの Web サイトにアプリケーション プールを割り当てようとしています。
' Connect to the WMI WebAdministration namespace.'
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Retrieve the application and display its Web site name and path.'
Set oApp = oWebAdmin.Get("Application.SiteName='Default Web Site',Path='/site'")
' Specify a new application pool name and save it.'
oApp.ApplicationPool = "NewAppPool"
oApp.Put_
上記のスクリプトは機能しません。
IIS の下で (スクリプトを使用して) アプリケーション プールを Web サイトに割り当てるより良い方法はありますか?