I am trying to get the status of IIS application pools and I have tried several different ways to gather the status. Has anyone do this before or can give me some hits. The code below gives me unsupported with "Cannot obtain WMI information". I can retrieve the data with the same inputs in a powershell script.
wmi.get[root/MicrosoftIISv2,SELECT * FROM IIsApplicationPools]
Any help would be grateful.
Ross
wmi.get[root/MicrosoftIISv2,SELECT * FROM IIsApplicationPools]
Any help would be grateful.
Ross
Comment