power shell set-AddressList question
Hello
I have to create an adresslist with users and some email enabled public folders.To select the users is right simple. I can use the recipientcontainer to get the users I want.But how can I get the public folders? The publicfolders are in the global adress list, so is there no way to get them in an adress list?
thx
Björn
April 1st, 2010 12:10pm
I´ve forgot, it´s for Exchange 2010
Free Windows Admin Tool Kit Click here and download it now
April 1st, 2010 12:24pm
Hello
I have to create an adresslist with users and some email enabled public folders.To select the users is right simple. I can use the recipientcontainer to get the users I want.But how can I get the public folders? The publicfolders are in the global adress list, so is there no way to get them in an adress list?
thx
Björn
Recipients are added to address list based on some filter criteria. What filter have u used for creating address list? Update whatever property you have used in this filter on respective public folder. If the filter is based on some custom attribute then put the correct value in resepective custom attribute of the mail-enabled public folder like this
set-mailPublicFolder '\PublicFolder' -CustomAttribute1 someValue
and the update your address list like
update-addresslist yourcustomAL
Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
April 1st, 2010 5:36pm
Hi,
Please set the public folder custom attribute you want to use it in New-Addresslist as Laeeq said.
For example: set-mailPublicFolder '\PublicFolder' -CustomAttribute1 'pf'
Same for mailbox user: eg: office 'finance'
The cmdlet can be(the new addresslist's name is PPFF):
New-AddressList -name 'PPFF' -displayname 'PPFF' -RecipientFilter{(((recipienttype -eq 'usermailbox') -and (office -eq 'finance')) -or ((recipienttype -eq 'publicfolder') -and (customattribute1 -eq 'pf')))}
More information:
New-AddressList
http://technet.microsoft.com/en-us/library/aa996912.aspx
Frank Wang
Free Windows Admin Tool Kit Click here and download it now
April 5th, 2010 6:18am