Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Set SecureBindings property Programmatically

13 views
Skip to first unread message

TroubleMan

unread,
Oct 29, 2009, 8:06:02 AM10/29/09
to
I am trying to set port 443 on a new website using VBScript and WMI. When I
use the code below I get "SWbemServicesEx: Not Found" error.

I see the SecureBindings property in the IIsWebServerSettings class and
SecureBindings is listed as an "array of object:SecureBinding" in CIM Studio

Can anyone tell me why the script is unable to find the property?

Set sslPort = objWMI.Get("IIsWebServerSetting='W3SVC/1234'")
sslBindings = Array(0)
Set sslBindings(0) = objWMI.get("SecureBindings").SpawnInstance_()
sslBindings(0).IP = ""
sslBindings(0).Port = "443"
sslPort.Put_()

If it matters any the entire script creates a single website with two host
headers and a matching app pool. Those pieces work fine but when the script
gets to the SecureBindings property it errors.

0 new messages