Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Get-MailboxStatistics - LastLoggedOnUserAccount

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-08-2008   #1 (permalink)
JSC
Guest


 

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

My System SpecsSystem Spec
Old 05-08-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Get-MailboxStatistics - LastLoggedOnUserAccount

JSC wrote:
Quote:

> 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
Sounds like you want:
get-mailboxstatistics|where-object {$_.LastLoggedOnUserAccount -eq
"DOMAIN\USERNAME1"}

Is that it?

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 05-08-2008   #3 (permalink)
JSC
Guest


 

Re: Get-MailboxStatistics - LastLoggedOnUserAccount

Yeah....exactly what I was looking for. Thanks!

"Marco Shaw [MVP]" wrote:
Quote:

> JSC wrote:
Quote:

> > 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
>
> Sounds like you want:
> get-mailboxstatistics|where-object {$_.LastLoggedOnUserAccount -eq
> "DOMAIN\USERNAME1"}
>
> Is that it?
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
get-mailboxstatistics cmdlet giving error Cyber Friend PowerShell 14 11-03-2007 05:18 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008