none
mailbox stats RRS feed

  • Question

  • Hi experts
    i want to run the below powershell script, could you please help me how to add the below lines
    archive mailbox status, if enabled what is archive quota and archive warning quota

    foreach($users in Get-Mailbox -ResultSize Unlimited){$users | Foreach-Object {   
    $user = $_
    $stats = Get-MailboxStatistics $user.Name
    $ad = Get-ADUser $user.Name -Properties employeeID
    $a=get-user $user.name
    $b=Get-CASMailbox $user.name      
    New-Object -TypeName PSObject -Property @{       
    DisplayName = $User.DisplayName
    FirstName = $a.FirstName
    LastName = $a.lastname
    userprincipalname = $user.userprincipalname
    JobTitle = $a.title
    OWAEnable = $b.OWAenabled
    IssueWarningQuota = $User.IssueWarningQuota       
    ProhibitSendQuota = $User.ProhibitSendQuota       
    ProhibitSendReceiveQuota = $User.ProhibitSendReceiveQuota     
    TotalItemSize = $stats.TotalItemSize
    AuditEnabled = $User.AuditEnabled  
    EmployeeID = $ad.EmployeeID               

    }
    }


    Friday, November 9, 2018 1:06 AM

Answers

  • Hi,

    You can display the archive mailbox status by adding the three lines in the script. If the Archive GUID is not 00000000-0000-0000-0000-000000000000, the archive is enabled for the mailbox.

    Regards,

    Dawn Zhou


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, November 12, 2018 7:29 AM
    Moderator

All replies

  • Hi,

    You can display the archive mailbox status by adding the three lines in the script. If the Archive GUID is not 00000000-0000-0000-0000-000000000000, the archive is enabled for the mailbox.

    Regards,

    Dawn Zhou


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, November 12, 2018 7:29 AM
    Moderator
  • Hi,

     

    How is everything going? If there is anything unclear or any update, please feel free to post it here. If you have solved the issue, please mark the solution as answer, which could be beneficial for answer searching in the forum.

     

    Thanks for your understanding.

    Regards,

    Dawn Zhou


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, November 15, 2018 9:50 AM
    Moderator