WMI Script Error - No Such Interface Supported

WMI Script Error - No Such Interface Supported

am 17.06.2005 22:59:03 von Anton

We are using iisapp.vbs (c:\windows\system32) to execute AppPool recycles via
script. This works great on 14 of the 15 servers, but one server
consistently fails with a "No such interface supported" error. Looking
through the code, this is happening when we call the WMI .Recycle method of
the newly instantiated AppPool object.

I've created a very simple snippet and I get the same error on this machine.

apoolid = "ApolloAppPool"

set refWMILocator = CreateObject("WbemScripting.SwbemLocator")
set refWMIServices = refWMILocator.ConnectServer("localhost",
"root/MicrosoftIISv2")
set nodeObj = refWMIServices.Get("IIsApplicationPool='W3SVC/AppPools/" &
apoolID & "'")

nodeObj.Recycle

Error is "SWbemObjectEx: No such interface supported"

This must be a server-specific configuration, as the other servers work just
fine. However, I am at a loss as to what to check.

Any ideas?