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
- 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 >