How do I use Exchange Power Shell to remove spaces from the aliases of mail enabled public folders?

When I look at the properties of several of my public folders that were replicated from Exchange 2003 I get the following error:

The properties on 'Made Up Name' have invalid data. If you click OK, default values will be used instead and will be saved if you do not change them before hitting Apply or OK on the property page. If you click cancel, the object will be displayed read-only and corrupted values will be retained.

The following values have invalid data:
Alias.

I found an article on TechNet (http://technet.microsoft.com/en-us/library/bb851499.aspx) that describes how to remove spaces from mailbox aliases but what command would I use to do the same thing for public folders?
Michael_GriffithAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

florin_sCommented:
Hi,

here is what I have foud:

http://www.visualbasicscript.com/m_61934/tm.htm
AmitTankCommented:
You can find a syntax for mailbox alias, group and public folder also in below thread...

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3724026&SiteID=17

Hope this helps you...!!!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael_GriffithAuthor Commented:
The link didn't take me to the answer at first but I posted the same question there and got the answer I needed. Thanks for the link!
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Michael_GriffithAuthor Commented:
For anyone interested here is the answer:

Get-PublicFolder -identity "\" -Recurse -ResultSize Unlimited | Get-MailPublicFolder | Where {$_.Alias -like "* *"} | ForEach-Object {Set-MailPublicFolder $_.identity -Alias:($_.Alias -Replace " ","")}
AmitTankCommented:
My Pleasure, Mike... :)
Michael_GriffithAuthor Commented:
I totally missed that I was talking to the same person. How funny! Thanks again!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.