Is there a way to search for all instances of configured web sites using this syntax? Is there a wild card I can use in the Site.Name query?
Dim webAdmin As Object
Set webAdmin = GetObject("winmgmts:root\WebAdministration")
'get instance of default web site in IIS7
Dim site As Object
'query wmi provider for info on default web site
Set site = webAdmin.Get("Site.Name='default web site'") -- is there a wild card here to return more than one site?
↧