Board index » Visual Studio » WMI/IIS errors
|
pmoniz
|
WMI/IIS errors
Visual Studio201
hello all, Im having an issue I cant seem to understand. I am trying to write code that will use WMI to edit the MB properties. Below is the code I would use to edit the MB properties for the default web site: set providerObj = GetObject("winmgmts://localhost/root/MicrosoftIISv2") set nodeObj = providerObj.get("IIsWebServerSetting='W3SVC/1'") How about if I want to edit the MASTER properties? I try the below code and get errors. set providerObj = GetObject("winmgmts://localhost/root/MicrosoftIISv2") set nodeObj = providerObj.get("IIsWebServerSetting='W3SVC") I have also tried the following w/ out any luck: set providerObj = GetObject("winmgmts://localhost/root/MicrosoftIISv2") set nodeObj = providerObj.get("IIsWebService='W3SVC'") any help would be appreciated TYVMIA - |
