Link to home
Create AccountLog in
Avatar of louis04
louis04

asked on

how to programatically locate exchange server

Hi,
Is there a way to programatically locate the ip address or host name of the computer(s) running Exchange Server on the local network.
Thanks for your help.
Avatar of isaman07
isaman07
Flag of Canada image

Check the DNS for the MX records. Or through ESM, expand the servers node. If you tell me what is your goal i might better help you.
Avatar of louis04
louis04

ASKER

Thanks for the reply.

I want to send messages (via SMTP) to the Exchange server without having to ask the administrator for the IP address (also if the location changes to be able to figure out where the Exchange server is running). This all needs to be done programatically without relying on any user or the administrator.

With the DNS approach I need to know the domain name and it may be changed on me later.

By ESM do you mean Exchange System Manager - if so, is there a way to interface with it (API) and can it be done remotely (from any PC on the network)?

I do have access to the Active Directory but can't figure out where the information is kept on the Exchange Server's network name and/or location.
ASKER CERTIFIED SOLUTION
Avatar of LeeDerbyshire
LeeDerbyshire
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of louis04

ASKER

Thanks, found it.