Move mailbox to another datastore. need help removing it from Disconnected mailbox. exchange 2007
there was space issues on one of the mailbox database. when i tried to permanantly delete it. exchange 2007
using following command please help.
Remove-Mailbox -Database cluster\box1 -StoreMailboxIdentity c74c3314-19a8-4bef-a419-4564a3e2f2ba -confirm:$
false
Remove-Mailbox : The mailbox that you specified is connected to "user1". O
nly disconnected mailboxes can be reconnected. Specified mailbox: "c74c3314-19a
8-4bef-a419-4564a3e2f2ba".
At line:1 char:15
+ Remove-Mailbox <<<< -Database cluster\box1 -StoreMailboxId
entity c74c3314-19a8-4bef-a419-4564a3e2f2ba -confirm:$false
June 18th, 2011 1:22pm
Try below. The commabnd you're using is for mailboxes which arw disconnected, in your case it's still connected.
Remove-Mailbox -identity domain\accountname
http://technet.microsoft.com/en-us/library/aa995948(EXCHG.80).aspxSukh
Free Windows Admin Tool Kit Click here and download it now
June 18th, 2011 2:32pm
On Sat, 18 Jun 2011 17:17:51 +0000, TonyOVT wrote:
>
>
>there was space issues on one of the mailbox database. when i tried to permanantly delete it. exchange 2007
>
>
>
>using following command please help.
>
>
>
>Remove-Mailbox -Database cluster\box1 -StoreMailboxIdentity c74c3314-19a8-4bef-a419-4564a3e2f2ba -confirm:$
>false
The use of the -StoreMailboxIdentity implies there's no AD user that's
using the mailbox. It's intended for use when you want to purge a
disconnected mailbox from the database.
Just use the remove-mailbox with the identity of the AD user. and
you'll be okay. E.g. "remove-mailbox user-id@domain.tld"
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
June 18th, 2011 5:01pm
Is there a way to remove everyone in the disconnected mailbox from a database?
And will running this command in any way interfere with the current mailbox that is being used?
Free Windows Admin Tool Kit Click here and download it now
June 18th, 2011 6:20pm
See this,
http://msmvps.com/blogs/andersonpatricio/archive/2007/10/08/removing-disconnected-mailboxes-in-exchange-server-2007.aspxSukh
June 18th, 2011 7:18pm
On Sat, 18 Jun 2011 22:15:35 +0000, TonyOVT wrote:
>Is there a way to remove everyone in the disconnected mailbox from a database?
You could just set the deleted mailbox retention period to zero and
wait a day.
Or you could use this to remove (permanently) all disconnected
mailboxes from a particular database:
get-mailboxstatistics -database
"servername\storagegroupname\databasename" | where {$_.disconnectdate
-ne $null} | foreach {remove-mailbox -database $_.database
-storemailboxidentity $_.mailboxguid}
>And will running this command in any way interfere with the current mailbox that is being used?
If the mailbox is disconnected it isn't being used. But if the
legacyExchangeDN kept in the mailbox is one that's used by another
mailbox in another database that IS used then you'll probably get an
error telling you that you can't remove it because it's in use. It's a
paradox, isn't it? In this case, just leave the mailbox in the
original database until the normal background database maintenance
tasks clean things up (see above reference to setting the mailbox
retention period to zero -- keeping in mind that it will apply to ALL
the disconnected mailboxes in that database!).
You could also start to move the mailbox BACK to the original
database. The duplicate mailbox will be detected and the move will
stop -- but the disconnected mailbox will beremoved.
But if, as the subject says, the mailbox is already moved to another
database, why not just leave it in the disconneced state until it
disappears of its own accord?
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 18th, 2011 10:30pm