(&(&(&(& (mailnickname=*) (|
(&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder) )))(objectCategory=user)(mail=*bc.com)))
I read through some of the instruction on how to convert custom address list
on www.msexchangeteam.com and it was not enough to help me on this
conversion. Any suggestion on how to convert? Thanks in advance.
(&
(&
(&
(&
(mailnickname=*)
(|
(&
(objectCategory=person)
(objectClass=user)
(!(homeMDB=*))
(!(msExchHomeServerName=*))
)
(&
(objectCategory=person)
(objectClass=user)
(|
(homeMDB=*)
(msExchHomeServerName=*)
)
)
(&
(objectCategory=person)
(objectClass=contact)
)
(objectCategory=group)
(objectCategory=publicFolder)
)
)
)
(objectCategory=user)
(mail=*bc.com)
)
)
First, the outside set of (& ... ) is redundant. Second, the inside pair of
person/user entries which are ORed together simply do the same thing as
(&(objectCategory=person)(objectClass=user)). So I think this would
simplify to this OPATH query.
(((RecipientType -eq 'UserMailbox') -or (RecipientType -eq
'MailEnabledUser') -or (RecipientType -eq 'Group') -or (RecipientType -eq
'PublicFolder')) -and (EmailAddresses -like "*bc.com"))
You can probably further simplify it to:
(EmailAddresses -like "*bc.com")
since I don't believe you really need to specify all those recipeint types.
You're probably only going to get what you want from the simple form.
Be sure to test it.
--
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
.
"RayRogers" <RayR...@news.postalias> wrote in message
news:A0BA6236-95EE-46B4...@microsoft.com...
"Ed Crowley [MVP]" wrote:
> ..
>
> "RayRogers" <RayR...@news.postalias> wrote in message
> news:A0BA6236-95EE-46B4...@microsoft.com...
> > Need help converting old custom address list to exchange 2007 OPATH
> > version.
> >
> > (&(&(&(& (mailnickname=*) (|
> > (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder)
> > )))(objectCategory=user)(mail=*bc.com)))
> >
> > I read through some of the instruction on how to convert custom address
> > list
> > on www.msexchangeteam.com and it was not enough to help me on this
> > conversion. Any suggestion on how to convert? Thanks in advance.
>
> .
>
"RayRogers" <RayR...@news.postalias> wrote in message
news:66E96443-9EB5-4A36...@microsoft.com...
set -addresslist (((RecipientType -eq 'UserMailbox') -or (RecipientType -eq
'MailEnabledUser') -or (RecipientType -eq 'Group') -or (RecipientType -eq
'PublicFolder')) -and (EmailAddresses -like "*bc.com"))
Thanks.
...and have a wonderful Thanksgiving!
"Ed Crowley [MVP]" wrote:
> What is the full command you entered?
> --
> Ed Crowley MVP
> "There are seldom good technological solutions to behavioral problems."
> .
>
Enter:
Help Set-AddressList
--
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
.
"RayRogers" <RayR...@news.postalias> wrote in message
news:A86B004D-91DA-446D...@microsoft.com...