Hi List,

This script is returning nothing:

$AcceptedDomains = Get-AcceptedDomain | select DomainName
foreach ($adomain in $AcceptedDomains)
{
Get-Mailbox | where {$_.PrimarySMTPAddress -like "*" + $adomain}
}


Where am I going wrong here? I'm stumped :(

-- 
Regards,
James.

http://www.jamesbensley.co.cc/

There are 10 kinds of people in the world; Those who understand
Vigesimal, and J others...?

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Reply via email to