Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1660
  • Last Modified:

inactive email users in office 365

dear all,

in our office 365 portal, i got the following:
1
when i go to check more details, i got only the following:
12

i just need to know how to get the name of those mailboxes? usernames?

thanks
1
Rhala
Asked:
Rhala
  • 2
1 Solution
 
awawadaCommented:
Hope this helps you:

1) Connect Windows PowerShell to the Service

2) Type the following cmdlet:
Get-mailbox -resultsize unlimited| Get-MailboxStatistics | select displayname, lastlogontime

3) Then you could get a list shown user names and their last logon time.

Source:
http://community.office365.com/en-us/forums/172/t/83477.aspx
0
 
RhalaAuthor Commented:
thanks.

How i can export the result of the command to excel sheet or txt file?
0
 
awawadaCommented:
You are welcome.

Export-CSV:
Get-mailbox -resultsize unlimited| Get-MailboxStatistics | select displayname, lastlogontime | Export-CSV c:\test.csv
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now