By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,238 Members | 1,485 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,238 IT Pros & Developers. It's quick & easy.

How do i do this in VB .Net

P: n/a
I have the following vbscript:

Const cComputerName = "SC-Mail"
Const cWMINameSpace = "root/cimv2/applications/exchange"
Const cWMIInstance = "ExchangeServerState"

Dim ExchangeServerList
Dim ExchangeServer

Set ExchangeServerList =
GetObject("winmgmts:{impersonationLevel=impersonat e}!//" & cComputerName &
"/" & cWMINameSpace).InstancesOf(cWMIInstance)

For each ExchangeServer in ExchangeServerList

WScript.Echo "DN: " & ExchangeServer.Name


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
Mar 31 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Take a look at this. Hopefully it can help you.
*** Sent via Developersdex ***
Mar 31 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.