Share via

LASTLOGON TIME

Anonymous
2017-01-10T23:49:41+00:00

Hello Support,

I ran the below command to find out the last log on report.

could you please tell em what you meant by the below warning "The user hasn't logged on to mailbox .............."

PS C:\Users\srajanprv> Get-MailboxStatistics mdadams | FL *LOG*

WARNING: The user hasn't logged on to mailbox 'mdadams' ('70a644db-2a53-4744-906f-152beb3af0fa'), so there is no data to return. After the user logs on, this warning will no longer appear.

Also the result is empty here in the below command, what does that mean?

PS C:\Users\srajanprv> Get-MailboxStatistics adharris | FL *LOG*

LastLoggedOnUserAccount :

LastLogoffTime          :

LastLogonTime           :

PS C:\Users\srajanprv>

Regards,

Sounder

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-01-11T03:35:34+00:00

Hi Sounder,

This warning message in PowerShell occurs whenever a new mailbox has no data/email or the mailbox is not yet opened. Please try sending an email or login to the mailbox account with either OWA or the Outlook client. Now after sending a mail and/or opening the mailbox, the later (second result) will appear and show no logon information, as the mailbox was not yet setup on an Outlook client and/or not yet accessed in OWA.

Based on my test, I have created a new mailbox (issa). It takes time for Office 365 to create the mailbox and you can check if it is created by the command Get-Mailbox (alias)

After running the same cmdlet, I also got this warning. Now we need to send a mail to this mailbox. You can follow this PowerShell command to send an email, and this requires you to enter your mailbox credentials:

Now when I run the command Get-Mailboxtatisctics, it will not have the warning and will show the logon information.

 

You can also modify the command with another pipe to display the item count, Storage status and Last logon time, using this command:

Get-Mailbox (alias) | Get-MailboxStatistics | Ft -auto

If the warning still occurs after sending an email or logging on to the new mailbox, please provide the following information to troubleshoot:

  1. The type of mailbox that was created (discovery mailbox, Resource, Shared mailbox, etc…).
  2. The subscription plan of your Office 365.

Looking forward to your updates.

Best Regards,

Ruel

[Updated by Ruel Mayoya MSFT Support, 9:29 AM, Jan, 18, 2016 (UTC)]

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-01-13T01:28:56+00:00

    Hi Sounder,

    Please provide us with some updates about the information mentioned above when you have time.

    Best Regards,

    Ruel

    Was this answer helpful?

    0 comments No comments