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

Posted on 2008-11-16
Last Modified: 2012-05-05
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:

I found an article on TechNet ( that describes how to remove spaces from mailbox aliases but what command would I use to do the same thing for public folders?
Question by:Michael_Griffith
    LVL 12

    Expert Comment


    here is what I have foud:
    LVL 6

    Accepted Solution

    You can find a syntax for mailbox alias, group and public folder also in below thread...

    Hope this helps you...!!!

    Author Closing Comment

    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!

    Author Comment

    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 " ","")}
    LVL 6

    Expert Comment

    My Pleasure, Mike... :)

    Author Comment

    I totally missed that I was talking to the same person. How funny! Thanks again!

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Email statistics and Mailbox database quotas You might have an interest in attaining information such as mailbox details, mailbox statistics and mailbox database details from Exchange server. At that point, knowing how to retrieve this information …
    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
    This video discusses moving either the default database or any database to a new volume.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now