Exchange Command Shell Filters for Mailenable Public Folders

Does anyone know the command line to make the mail enables folders in public folders show up in the public folders address list?
funkyone60Asked:
Who is Participating?
 
endital1097Connect With a Mentor Commented:
no, that should be all

you can test the result of this by running
Get-Recipient -Filter { RecipientType -eq 'PublicFolder' }
0
 
vahiidCommented:
They should show up in your Public Folders address list after every update interval. If the update is not running or you want to run a manual update, run this command:

Update-AddressList "Public Folders"


You'll get some details about your "Public Folders" address list by running

Get-AddressList "Public Folders" | FL


Vahid
0
 
funkyone60Author Commented:
i don;'thave a public folders address list on the exchange server- I hace contacts/rooms/groups/GAL- no public folders-when I go to add address list- no public folders to choose from
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
vahiidCommented:
Run the Get-AddressList cmdlet in exchange management shell to see if the Address List is missing in your Exchange.

If you are missing it, or it is created on an older version of Exchange, run:

Set-AddressList “Public Folders” –RecipientFilter {RecipientType –eq “PublicFolder”}

This will convert the address list  to Exchange Server 2010.

Vahid
0
 
funkyone60Author Commented:
heres what I shows- and then when I run your command line
public-folder.JPG
0
 
endital1097Commented:
you need to run the Enable-MailPublicFolder cmdlet

Enable-MailPublicFolder "\foldername"
0
 
subratdCommented:
this is the command to set the Public Folder address list:

Set-AddressList "Public Folders" -RecipientFilter {RecipientType -eq "PublicFolder"}

Can you try this is some other server?
0
 
funkyone60Author Commented:
what do u mean?  like run that command from the dc?
0
 
subratdCommented:
not from DC..
If you are running it from Mailbox server ,.. then try to to run it from HUB or CAS server.
:)
0
 
funkyone60Author Commented:
i dont have a HUB or CAS server-
0
 
funkyone60Author Commented:
ok- the public folders is showing up but if you hit the drop down in address book and select public folders it shows you the GAL on the public folders address list
0
 
endital1097Commented:
i am going to get my lab back online and get what you need
0
 
endital1097Commented:
are you still in mixed mode with exchange 2003?
0
 
funkyone60Author Commented:
no I am not
0
 
endital1097Commented:
did you run this command from the exchange management shell
it will prompt you to upgrade the address list

Set-AddressList "Public Folders" -RecipientFilter {RecipientType -eq "PublicFolder"}

0
 
vahiidCommented:
This is actually going to sound wierd, but you can't always copy and paste commands in powershell and except them to work. This cmdlet is one of them!

So if the copy and paste still gives you the same error, just type in the command word by word in your exchange powershell and it will work fine:

set-addresslist "Public Folders" -RecipientFilter {(RecipientType -eq 'PublicFolder')}


Vahid
0
 
funkyone60Author Commented:
ok- when I typed this command in it brought be to >>with flashing cursor- should I type something else or hit enter
0
 
vahiidCommented:
That simply means the syntax is still incorrect, press Ctrl+C to get out of the >> mode and double check the command. If it helps, copy and paste into notepad and then type in power shell from notepad, paying attentions to ' and "
0
 
funkyone60Author Commented:
are those parentheses or arrows on the inside of -->{(RecipientType -eq 'PublicFolder')}
0
 
funkyone60Author Commented:
now it is actually bringing me back to the command prompt- should there be dialog after I run the command?
0
 
funkyone60Author Commented:
it shows the correct folders but when I go to public folders in my drop down menu in in outlook- still shows the GAL.  Its not the bigeest deal in the world but its one of those buggy little things that make me crazy.
0
 
vahiidCommented:
Try it in OWA and see if you see the right Public Folder list. If OWA works fine, then it's your Outlook Profile. Try taking it off the cache mode, or rebuild outlook profile.
0
 
funkyone60Author Commented:
Great idea but yes its the same in owa.
0
 
endital1097Commented:
you don't see the public folders list at all
0
 
funkyone60Author Commented:
i see the list but the contents are the GAL
0
 
endital1097Commented:
sounds like your ldap filter for this list is off
run the following to check

get-addresslist public* | fl name,ldap*

it should look like
(& (mailnickname=*) (| (objectCategory=publicFolder) ))
0
 
funkyone60Author Commented:
this is what it came back as
ldap.JPG
0
 
funkyone60Author Commented:
I think maybe it took a minute for the seetings to replicate- but it worked- Thanks for your help!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.