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.
Email ProtocolsActive DirectoryExchange

Avatar of undefined
Last Comment
louis04

8/22/2022 - Mon
isaman07

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.
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
LeeDerbyshire

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
louis04

ASKER
Thanks, found it.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy