Skip to content
Get a list of mailbox users having a selected client access protocol enabled
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Get-EnabledProtocolReport.ps1
LICENSE
README.md
Run-EnabledProtocolReport.ps1

README.md

Get-EnabledProtocolReport.ps1

Get a list of mailbox users having a selected client access protocol enabled

Description

This scripts gather a list of enabled users for a selected Exchange Server client protocol. The list of users is sent by email as HTML text in the email body or as an attached CSV file. You can select to gather data for a single protocol or for all protocols.

Available protocols are:

  • POP
  • IMAP
  • ActiveSync

Requirements

  • Windows Server 2012 R2 or newer
  • Exchange 2016+ Management Shell
  • GlobalFunctions module (found here)

Parameters

Protocol

The client access protocol to report on. Options: All, POP, IMAP, ActiveSync

ExportCsv

Switch to export the result set of users as CSV file and attach the file to email

UserDetailsInEmailBody

Switch to include the result set of users in the mail body

SendMail

Switch to send a report email

MailFrom

Email address of report sender

MailTo

Email address of report recipient

MailServer

SMTP Server for email report

Examples

.\Get-EnabledProtocolReport.ps1 -SendMail -MailFrom automation@varunagroup.de -MailTo report@varunagroup.de -MailServer relay.varunagroup.de -Protocol ALL

Find users having all protocols enabled, create a CSV file per protocol and send an email with CSV attachments

.\Get-EnabledProtocolReport.ps1 -Protocol ALL -ExportCsv

Find users having all protocols enabled, create a CSV file per protocol

Note

THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.

TechNet Gallery

Download and vote at TechNet Gallery

Credits

Written by: Thomas Stensitzki

Stay connected:

For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos

You can’t perform that action at this time.