Link to home
Start Free TrialLog in
Avatar of jaysiercks
jaysiercks

asked on

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?
Avatar of Pradeep
Pradeep
Flag of United States of America image

Are you using cmd similar to this..?

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

For detailed descrition check this
Avatar of jaysiercks
jaysiercks

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of ACRHPSI
ACRHPSI
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Type clean-mailboxdatabase comp and press tab button to see the options available..
(Presently im not having server to test it)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial