|
|
|
date: Wed, 2 Jan 2008 15:08:04 +0000 (UTC),
group: microsoft.public.exchange.development
back
RE: How to view Diabled Mailboxes in E2K7
Hello Cyber,
> Hi there,
>
> After alot of testing on my system I came to know
> that
>
> after disabling a mailbox this mailbox will
> be displayed in "Disconnected Mailbox" in Exchange Management Console
> only if this mailbox is accessed once ( ie. user logged in to that
> mailbox atleast once). All the mailboxes which are just created and
> haven't been logged in atleast once , will not be displayed in
> "Disconnected Mailbox" in EMC after being Disabled (either via Disable
> button on EMC or via Disable-mailbox Cmdlet in PowerShell).
>
> Worse is that if we Disable a newly created
> mailbox (which has not been logged in (accessed) atleast once ) then
> we can't Enable that mailbox again via Connect-mailbox Cmdlet (Nor
> this mailbox is displayed in EMC as I mentioned above). This way that
> disabled mailbox is lost permanently.
>
> Now I have two quries about it
>
> 1. Is there a way to programatically view all
> the disconnected mailboxes ?
>
> 2. Is there a way to programatically log in to
> a mailbox ( bcoz Exchange doesn't create a mailbox in mailbox store
> untill this mailbox is logged in).
>
> best regards
>
> "Cyber Friend" wrote:
>
>> Hi there,
>>
>> I have disbaled a mailbox using the PowerShell Command
>>
>> Disable-mailbox -identity dev@domain1.com
>>
>> Now I want to see all disabled mailboxes, How to do that ?
>>
>> I can't see this disabled mailbox in Disconnected Mailboxes in EMC.
>>
>> best regards,
>>
>> -- Cyber Friend
Laceq;
You can see all disconnected mailboxes via powershell:
Get-MailboxStatistics -Server <server name> | where { $_.DisconnectDate -ne
$null } | select DisplayName,DisconnectDate
Since you actually never created a mailbox, it won't show - all you did was
mail enable an Active Directory object.
I would suggest that if it is somehow important in your organization to create
and delete mailboxes like this, that you send the new mail enabled AD object
a mail message, which will create the mailbox, and then delete the mailbox.
Now it will show in Disconnected Mailboxes.
Karl
date: Wed, 2 Jan 2008 15:08:04 +0000 (UTC)
author: Karl Mitschke
Re: How to view Diabled Mailboxes in E2K7
... or after mailbox creation, use the following command:
Test-MapiConnectivity "John Doe"
--
Bharat Suneja
MVP - Exchange
www.zenprise.com
NEW blog location:
exchangepedia.com/blog
----------------------------------
"Karl Mitschke" wrote in message
news:7063857f218678ca1b2dbc63324d@msnews.microsoft.com...
> Hello Cyber,
>
>> Hi there,
>>
>> After alot of testing on my system I came to know
>> that
>>
>> after disabling a mailbox this mailbox will
>> be displayed in "Disconnected Mailbox" in Exchange Management Console
>> only if this mailbox is accessed once ( ie. user logged in to that
>> mailbox atleast once). All the mailboxes which are just created and
>> haven't been logged in atleast once , will not be displayed in
>> "Disconnected Mailbox" in EMC after being Disabled (either via Disable
>> button on EMC or via Disable-mailbox Cmdlet in PowerShell).
>>
>> Worse is that if we Disable a newly created
>> mailbox (which has not been logged in (accessed) atleast once ) then
>> we can't Enable that mailbox again via Connect-mailbox Cmdlet (Nor
>> this mailbox is displayed in EMC as I mentioned above). This way that
>> disabled mailbox is lost permanently.
>>
>> Now I have two quries about it
>>
>> 1. Is there a way to programatically view all
>> the disconnected mailboxes ?
>>
>> 2. Is there a way to programatically log in to
>> a mailbox ( bcoz Exchange doesn't create a mailbox in mailbox store
>> untill this mailbox is logged in).
>>
>> best regards
>>
>> "Cyber Friend" wrote:
>>
>>> Hi there,
>>>
>>> I have disbaled a mailbox using the PowerShell Command
>>>
>>> Disable-mailbox -identity dev@domain1.com
>>>
>>> Now I want to see all disabled mailboxes, How to do that ?
>>>
>>> I can't see this disabled mailbox in Disconnected Mailboxes in EMC.
>>>
>>> best regards,
>>>
>>> -- Cyber Friend
>
> Laceq;
>
> You can see all disconnected mailboxes via powershell:
>
> Get-MailboxStatistics -Server <server name> | where {
> $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate
>
> Since you actually never created a mailbox, it won't show - all you did
> was mail enable an Active Directory object.
>
> I would suggest that if it is somehow important in your organization to
> create and delete mailboxes like this, that you send the new mail enabled
> AD object a mail message, which will create the mailbox, and then delete
> the mailbox.
>
> Now it will show in Disconnected Mailboxes.
>
> Karl
>
>
date: Wed, 2 Jan 2008 07:10:46 -0800
author: Bharat Suneja [MVP]
|
|