|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do i do this in VB .NetConst cComputerName = "SC-Mail" Const cWMINameSpace = "root/cimv2/applications/exchange" Const cWMIInstance = "ExchangeServerState" Dim ExchangeServerList Dim ExchangeServer Set ExchangeServerList = GetObject("winmgmts:{impersonationLevel=impersonate}!//" & cComputerName & "/" & cWMINameSpace).InstancesOf(cWMIInstance) For each ExchangeServer in ExchangeServerList WScript.Echo "DN: " & ExchangeServer.Name Next That gives me our mail server's name. I have spent the last two days unsuccesfully trying to do the same job in VB .Net. How do i do it??!?!?!?!?!!? Take a look at this. Hopefully it can help you.
http://boycot.no-ip.com/vb/RemoteWMI.vb.html *** Sent via Developersdex http://www.developersdex.com ***
Get the selected value from a listbox
Help Needed WIth Printing BN.NET 2005 Patterns anyone? From VB.NET to Word 2003 dll not reading .config ? Importing from Excel How can I get caption of all open windows?? Passing Vb equivilent of "structs" between forms settings.settings ?? LIstbox having multicolumn |
|||||||||||||||||||||||