Home > Software engineering >  VBS how to create iis
VBS how to create iis

Time:10-14

Excuse me, how can you get function usage,
A method of using WbemServices ExecNotificationQuery can query the features we have class, and be able to get the class instance,
I will not use the


The Set locatorObj=CreateObject (" WbemScripting. SWbemLocator ")
The Set providerObj=locatorObj. ConnectServer (strComputer, "root/MicrosoftIISv2")
The Set serviceObj=providerObj. Get (" IIsWebService='W3SVC' ")
Bindings=Array (0)
The Set Bindings (0)=providerObj. Get (" ServerBinding "). SpawnInstance_ ()
The Bindings (0). IP=""
The Bindings (0). The Port="80"
The Bindings (0). The Hostname=domain
  •  Tags:  
  • VBA
  • Related