Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Vista Newsgroup Archive > Misc Newsgroups > PowerShell

RB

Vista - Exchange 2007 validate domain email addresses?

 
 
10-16-2007   #1 (permalink)
Karl Mitschke


 

Exchange 2007 validate domain email addresses?

Hello;

Suppose I have an Exchange 2007 system setup as one forest with 3 domains.

On two of these domains, I have Exchange 2007 servers. I have clients with
Outlook 2003, so I have public folders.

I have no Exchange servers that are not running 2007.

Both domains share one email address space (@somecompany.com)

I have contacts, distribution groups, users, public folders that are all
email enabled.

I want to verify that the email address postmaster@xxxxxx is not
assigned to any of those recipient types.

So far, all I can come up with is doing the following calls:

get-mailbox postmaster@xxxxxx
get-mailuser postmaster@xxxxxx
get-mailcontact postmaster@xxxxxx
get-distributiongroup postmaster@xxxxxx
get-publicfolder postmaster@xxxxxx

If they all fail, postmaster@xxxxxx is not currently assigned.

This seems rather ugly. Is there a better way, using only built in cmdlets,
to validte the existance of an email address in Exchange 2007?

Thanks

Karl



My System SpecsSystem Spec
10-16-2007   #2 (permalink)
RichS


 

RE: Exchange 2007 validate domain email addresses?

have you tried get-recipient
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Karl Mitschke" wrote:
Quote:

> Hello;
>
> Suppose I have an Exchange 2007 system setup as one forest with 3 domains.
>
> On two of these domains, I have Exchange 2007 servers. I have clients with
> Outlook 2003, so I have public folders.
>
> I have no Exchange servers that are not running 2007.
>
> Both domains share one email address space (@somecompany.com)
>
> I have contacts, distribution groups, users, public folders that are all
> email enabled.
>
> I want to verify that the email address postmaster@xxxxxx is not
> assigned to any of those recipient types.
>
> So far, all I can come up with is doing the following calls:
>
> get-mailbox postmaster@xxxxxx
> get-mailuser postmaster@xxxxxx
> get-mailcontact postmaster@xxxxxx
> get-distributiongroup postmaster@xxxxxx
> get-publicfolder postmaster@xxxxxx
>
> If they all fail, postmaster@xxxxxx is not currently assigned.
>
> This seems rather ugly. Is there a better way, using only built in cmdlets,
> to validte the existance of an email address in Exchange 2007?
>
> Thanks
>
> Karl
>
>
>
My System SpecsSystem Spec
10-16-2007   #3 (permalink)
Karl Mitschke


 

RE: Exchange 2007 validate domain email addresses?

Hello RichS,
Quote:

> have you tried get-recipient
>
DOH!

Thanks, Richard!


My System SpecsSystem Spec
10-17-2007   #4 (permalink)
Shay Levi


 

Re: Exchange 2007 validate domain email addresses?

Check out: Who owns that email address?
http://scriptolog.blogspot.com/2007/...l-address.html


Shay
http://scriptolog.blogspot.com


Quote:

> Hello;
>
> Suppose I have an Exchange 2007 system setup as one forest with 3
> domains.
>
> On two of these domains, I have Exchange 2007 servers. I have clients
> with Outlook 2003, so I have public folders.
>
> I have no Exchange servers that are not running 2007.
>
> Both domains share one email address space (@somecompany.com)
>
> I have contacts, distribution groups, users, public folders that are
> all email enabled.
>
> I want to verify that the email address postmaster@xxxxxx is
> not assigned to any of those recipient types.
>
> So far, all I can come up with is doing the following calls:
>
> get-mailbox postmaster@xxxxxx get-mailuser
> postmaster@xxxxxx get-mailcontact postmaster@xxxxxx
> get-distributiongroup postmaster@xxxxxx get-publicfolder
> postmaster@xxxxxx
>
> If they all fail, postmaster@xxxxxx is not currently
> assigned.
>
> This seems rather ugly. Is there a better way, using only built in
> cmdlets, to validte the existance of an email address in Exchange
> 2007?
>
> Thanks
>
> Karl
>

My System SpecsSystem Spec
10-17-2007   #5 (permalink)
Karl Mitschke


 

Re: Exchange 2007 validate domain email addresses?

Hello Shay,
Quote:

> Check out: Who owns that email address?
> http://scriptolog.blogspot.com/2007/...il-address.htm
> l
> Shay
> http://scriptolog.blogspot.com
Thanks, Shay.

I'm using get-recipient now.

karl


My System SpecsSystem Spec
 

Thread Tools


Similar Threads for: Exchange 2007 validate domain email addresses?
Thread Forum
Cannot send email to addresses outside the email server domain Vista mail
SBS 2008, Exchange 2007 - Multiple E-mail Domain & Multiple Mailbo SBS Server
Disable exchange email for one domain user - SBS 2003 SBS Server
How to connect Outlook 2007 to Exchange 2007 from out a domain? SBS Server
Set new primary SMTP-addresses in Exchange 2007 PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51