> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Pull Name, SMTP, OU and last logon time from Exchange 2013
- URL: https://www.techielass.com/pull-name-smtp-ou-and-last-logon-time-from-exchange-2013/
- Published: 2016-08-16T06:00:00.000Z
- Updated: 2021-03-13T14:04:11.000Z
- Author: Sarah Lean
- Tags: Microsoft Exchange

This script enables you to pull together the Name, Primary SMTP Address, Organizational Unit and Last Logon Time information. This information can be useful if you are trying to find out which mailboxes are being used or not. This script has been tested on Exchange 2013 only.

**Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName, PrimarySMTPAddress, OrganizationalUnit, @{label="LastLogonTime";expression={(Get-MailboxStatistics $\_).LastLogonTime}}**