Submit a ticketCall us

WebinarUpcoming Webinar: Easily Automate Backups and Simplify Log Message Management

Backing up your network configuration and logging data are a few steps to helping keep your network safe. In this in-depth webinar, we’ll show you how these tasks can be automated to save your IT team time while maintaining accurate archives of your data.

Register now.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > Office 365 user statistics with Powershell

Office 365 user statistics with Powershell

Table of contents
Created by Jesus Relingado, last modified by carolyn.mazenko on Aug 02, 2018

Views: 3,299 Votes: 0 Revisions: 5

Updated August 2, 2018

Overview

This template tracks the statistics of exchange mailboxes of the exchange online server using PowerShell scripts.

To learn more about Office 365 templates, see Using Microsoft Office 365 templates.

Environment

SAM 6.5 and later

Detail

 

Prerequisites

See Microsoft Office 365 template requirements.

 

Credentials

  • An Orion account with SAM administrator permissions.
  • An Office 365 account with global administrator privileges.
    • The account must be a member of an Office 365 admin role.
    • The account should be an all-in-one, inclusive account to support the monitoring of all mailboxes.

Use UPN format (username@domain) — not domain\username format to enter credentials. Also, a service account for Exchange Web Services is recommended to avoid authentication issues when passwords are updated.

 

Monitored Components

For details on monitors, see SAM Component Monitor Types.

 

Recipient Statistics Report

This component monitor returns recipient statistics report which include the following:

  • Total Number Of Mailboxes;
  • Total Number Of Active Mailboxes;
  • Number Of Contacts;
  • Number Of Distribution Lists.

 

Total Items Count

This component monitor returns the total number of emails on the server.

 

Total Items Size (MB)

This component monitor returns the total mail size on the server in MB.

 

Specific User Items Count

This component monitor returns the number of emails for the specified user.

Note: You must specify the correct arguments in the Script Arguments field of the corresponding PowerShell Monitor. This monitor requires the following  argument:

   user_name

  where:
  user_name – target username;

Example: john

 

Specific User Items Size (MB)

This component monitor returns the mailbox size for the specified user in MB.

Note: You must specify the correct arguments in the Script Arguments field of the corresponding PowerShell Monitor. This monitor requires the following argument:

   user_name

  where:
  user_name – target username;

Example: john

 

Test User MAPI Connectivity

This component verifies that a specified mailbox can connect by using the MAPI protocol, which is used by Microsoft Office Outlook.  By default, this monitor is disabled.

Possible returned values include:

  • 0 – Test failed. See message field for errors.
  • 1 – MAPI Test successfully finished.

Note: You must specify the correct arguments in the Script Arguments field of the corresponding PowerShell Monitor. This monitor requires the following argument:

   user_name

  where:
  user_name – target username;

 

For more information, see Office 365 User Statistics with PowerShell.apm-template.

Last modified

Tags

Classifications

Public