Daniel - thanks. We are actually in a mixed environment - exchange 2010 and exchange 2013. The database I was trying to extract information from resides on Exchange 2010; I was running the command from Exchange 2010. Running the command with Exchange 2013 PowerShell - it works perfectly.
Peter -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Chenault Sent: Thursday, February 26, 2015 10:10 AM To: [email protected] Subject: Re: [Exchange] combine get-mailboxstatistics and get-mailbox commands Save the results to a var. Then display the var. $results = <your code> $results > On Feb 26, 2015, at 6:27, "Connolly, Peter" <[email protected]> wrote: > > All, > > Exchange 2010. > > I want to retrieve alias and LastLogonTime. This command seems to > work, except it only returns the LastLogonTime for the last user in > the list. Can anyone help with the syntax? Thanks! > > Get-Mailbox -database db07 | Select alias, > @{label="LastLogonTime";e={(Get-MailboxStatistics $_).lastlogontime}} > > Peter >
smime.p7s
Description: S/MIME cryptographic signature
