Hi,
I'm trying to run this script to assign Application Pool to web site running under IIS 6
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
Set oSite = oWebAdmin.Get("Site.Name='Site'")
oSite.ApplicationDefaults.ApplicationPool = "NewAppPool"
oSite.Put_
This script can't run under IIS 6... Is there is something wrong?
Thanks,