Sitting on an old Exchange 2003 server the other day, I needed a quick list of all the email addresses (including aliases). Being a bit old school the easiest thing for me to do was slap together a batch file to give me the answer. So to save me (and anyone else) the effort if I ever have to do it again, here it is:
@echo Off ldifde -f %TEMP%\ldifde-dump.txt -l proxyaddresses find "proxyAddresses: " < %TEMP%\ldifde-dump.txt > %TEMP%\ldifde-dump.filter1.txt find "@" < %TEMP%\ldifde-dump.filter1.txt > %TEMP%\email-addresses.txt del %TEMP%\ldifde-dump.txt del %TEMP%\ldifde-dump.filter1.txt notepad %TEMP%\email-addresses.txt
0 comments:
Post a Comment