Clean-MailboxDatabase Command Error - Exchange 2007

I deleted/disabled a users mailbox that is no longer with the company. So I run the Clean-Mailboxdatabase command and I get an error because the data base's name is Company Users with a space in the middle. Clearly the command doesnt like spaces. So I tried Clean-MailboxDatabase Company-Users and clearly that didnt work. So how do I clean a database with a space in the database name?
Who is Participating?
ACRHPSIConnect With a Mentor Commented:
Just a guess, but have you tried quotation marks around the name?  ie. "john smith"
Are you using cmd similar to this..?

clean-MailboxDatabase -Identity <DatabaseIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-WhatIf [<SwitchParameter>]]

For detailed descrition check this
jaysiercksAuthor Commented:
No I just use Clean-MailboxDatabase Company Users. I have tried Clean-Mailbox Company_Mgmt and it worked fine. But I think the space in between Company Users is throwing it off.
Type clean-mailboxdatabase comp and press tab button to see the options available..
(Presently im not having server to test it)
Jamie McKillopConnect With a Mentor IT ManagerCommented:

As ACRHPSI said, you need to put quotes around the database name when it contains a space.

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.