Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: WMI script doesn't return data for root\MicrosoftExchangeV2

HTVi
TV Discussion Newsgroups

WMI script doesn't return data for root\MicrosoftExchangeV2
brij 5/18/2007 12:14:00 PM
Hi,
I am trying to get a list of routinggroup / status, so i wrote a pretty
simple WMI script which is somewhat like this
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
& strComputer & "\root\MicrosoftExchangeV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Exchange_Server",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Exchange_Server instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Status: " & objItem.Status
Next

when i run this, it doesn't show any error, but doesn't run either, other
simple classes are returning data, but not this exchange server one, please
help....

Thanks and Regards

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen