joeware - never stop exploring... :)

Information about joeware mixed with wild and crazy opinions...

How To: Dump Exchange SMTP addresses in Active Directory with AdFind…

by @ 7:52 pm on 9/24/2006. Filed under tech

adfind -sc exchaddresses:smtp

Ex:

F:\Dev\CPP\AdFind>adfind -sc exchaddresses:smtp

AdFind V01.32.00cpp Joe Richards (joe@joeware.net) September 2006

Using server: 2k3dc10.child1.joe.com:3268
Directory: Windows Server 2003

dn:CN=$jricha34,CN=Users,DC=joe,DC=com
>proxyAddresses: smtp:$jricha34@joeware2.net
>proxyAddresses: SMTP:$jricha34@joe.com

dn:CN=Public Folder Store (2K3EXC01),CN=SG1,CN=InformationStore,CN=2K3EXC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com
>proxyAddresses: smtp:2K3EXC01-IS@joeware2.net
>proxyAddresses: smtp:2K3EXC01-IS@joeware2.com
>proxyAddresses: SMTP:2K3EXC01-IS@joe.com

dn:CN=Microsoft System Attendant,CN=2K3EXC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com
>proxyAddresses: smtp:2K3EXC01-SA@joeware2.net
>proxyAddresses: smtp:2K3EXC01-SA@joeware2.com
>proxyAddresses: SMTP:2K3EXC01-SA@joe.com

dn:CN=Public Folder Store (2K3EXC02),CN=SG1,CN=InformationStore,CN=2K3EXC02,CN=Servers,CN=Second Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com
>proxyAddresses: smtp:2K3EXC02-IS@joeware2.net
>proxyAddresses: SMTP:2K3EXC02-IS@joe.com

dn:CN=Microsoft System Attendant,CN=2K3EXC02,CN=Servers,CN=Second Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com
>proxyAddresses: smtp:2K3EXC02-SA@joeware2.net
>proxyAddresses: SMTP:2K3EXC02-SA@joe.com

dn:CN=aexchuser_0,OU=TestOU,DC=joe,DC=com
>proxyAddresses: smtp:aexchuser_0@joeware2.net
>proxyAddresses: SMTP:aexchuser_0@joe.com

dn:CN=aexchuser_1,OU=TestOU,DC=joe,DC=com
>proxyAddresses: smtp:aexchuser_1@joeware2.net
>proxyAddresses: SMTP:aexchuser_1@joe.com

<SNIP>

dn:CN=tmpd1,OU=TestOU,OU=joeware2,OU=Exchange,DC=joe,DC=com
>proxyAddresses: smtp:tmpd1@joeware2.net
>proxyAddresses: SMTP:tmpd1@joe.com

dn:CN=tmpd2,OU=Exchange,OU=TestOU,DC=child1,DC=joe,DC=com
>proxyAddresses: smtp:tmpd2@joeware2.net
>proxyAddresses: SMTP:tmpd2@joe.com

dn:CN=TNest,OU=RuleCheck,OU=joeware2,OU=Exchange,DC=joe,DC=com
>proxyAddresses: smtp:TNest@joeware2.net
>proxyAddresses: SMTP:TNest@joe.com

dn:CN=u10a,OU=tmptestou,OU=joeware2,OU=Exchange,DC=joe,DC=com
>proxyAddresses: smtp:u10@joeware2.net
>proxyAddresses: SMTP:u10@joe.com

6101 Objects returned

 

In CSV format…

adfind -sc exchaddresses:smtp  -csv

Ex:

F:\Dev\CPP\AdFind>adfind -e -sc exchaddresses:smtp -csv -maxe 10
“dn”,”proxyAddresses”
“CN=$jricha34,CN=Users,DC=joe,DC=com”,”smtp:$jricha34@joeware2.net;SMTP:$jricha34@joe.com”
“CN=Public Folder Store (2K3EXC01),CN=SG1,CN=InformationStore,CN=2K3EXC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com”,”smtp:2K3EXC01-IS@joeware2.net;smtp:2K3EXC01-IS@joeware2.com;SMTP:2K3EXC01-IS@joe.com”
“CN=Microsoft System Attendant,CN=2K3EXC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com”,”smtp:2K3EXC01-SA@joeware2.net;smtp:2K3EXC01-SA@joeware2.com;SMTP:2K3EXC01-SA@joe.com”
“CN=Public Folder Store (2K3EXC02),CN=SG1,CN=InformationStore,CN=2K3EXC02,CN=Servers,CN=Second Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com”,”smtp:2K3EXC02-IS@joeware2.net;SMTP:2K3EXC02-IS@joe.com”
“CN=Microsoft System Attendant,CN=2K3EXC02,CN=Servers,CN=Second Administrative Group,CN=Administrative Groups,CN=joeware,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=joe,DC=com”,”smtp:2K3EXC02-SA@joeware2.net;SMTP:2K3EXC02-SA@joe.com”
“CN=aexchuser_0,OU=TestOU,DC=joe,DC=com”,”smtp:aexchuser_0@joeware2.net;SMTP:aexchuser_0@joe.com”
“CN=aexchuser_1,OU=TestOU,DC=joe,DC=com”,”smtp:aexchuser_1@joeware2.net;SMTP:aexchuser_1@joe.com”

<SNIP>

“CN=tmpd1,OU=TestOU,OU=joeware2,OU=Exchange,DC=joe,DC=com”,”smtp:tmpd1@joeware2.net;SMTP:tmpd1@joe.com”
“CN=tmpd2,OU=Exchange,OU=TestOU,DC=child1,DC=joe,DC=com”,”smtp:tmpd2@joeware2.net;SMTP:tmpd2@joe.com”
“CN=TNest,OU=RuleCheck,OU=joeware2,OU=Exchange,DC=joe,DC=com”,”smtp:TNest@joeware2.net;SMTP:TNest@joe.com”
“CN=u10a,OU=tmptestou,OU=joeware2,OU=Exchange,DC=joe,DC=com”,”smtp:u10@joeware2.net;SMTP:u10@joe.com”

Rating 3.00 out of 5

Comments are closed.

[joeware – never stop exploring… :) is proudly powered by WordPress.]