Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 8 May 2008 08:19:01 -0700,    group: microsoft.public.exchange.admin        back       


Get-MailboxStatistics - LastLoggedOnUserAccount   
When using the powershell CMDlets in the Exchange 2007 shell, I am trying to 
get a query of ALL mailboxes that have the LastLoggedOnUserAccount set to a 
sepecific user.  This will help us identify mailboxes that have not been 
accessed since our migration from 2003.

I can look at a specific mailbox by doing this:
get-mailboxstatistics username | fl

But is there a way to get the stats of all mailboxes (maybe by using a *) 
that have the LastLoggedOnUserAccount set to a sepecific user like 
DOMAIN\USERNAME1
date: Thu, 8 May 2008 08:19:01 -0700   author:   JSC

Re: Get-MailboxStatistics - LastLoggedOnUserAccount   
- Use Get-mailbox to get all mailboxes. Use where-object to filter the 
results.
- Note, "where-object" can be abbreviated to "where"

Get-Mailbox -ResultSize unlimited | where {$_.LastLoggedOnUserAccount -eq 
"DOMAIN\user"}

-- 
Bharat Suneja
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights. Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
----------------------------

"JSC"  wrote in message 
news:55EED970-BFB4-405F-B7DE-A3E794123450@microsoft.com...
> When using the powershell CMDlets in the Exchange 2007 shell, I am trying 
> to
> get a query of ALL mailboxes that have the LastLoggedOnUserAccount set to 
> a
> sepecific user.  This will help us identify mailboxes that have not been
> accessed since our migration from 2003.
>
> I can look at a specific mailbox by doing this:
> get-mailboxstatistics username | fl
>
> But is there a way to get the stats of all mailboxes (maybe by using a *)
> that have the LastLoggedOnUserAccount set to a sepecific user like
> DOMAIN\USERNAME1
>
date: Thu, 8 May 2008 08:25:19 -0700   author:   Bharat Suneja [MSFT]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us