Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition

Make the most of PowerShell's features to manage all aspects of your Exchange Server 2016 environment.

Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition

Jonas Andersson, Nuno Mota, Mike Pfeiffer

1 customer reviews
Make the most of PowerShell's features to manage all aspects of your Exchange Server 2016 environment.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$33.60
RRP $47.99
Save 29%
Print + eBook
$59.99
RRP $59.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$33.60
$59.99
$29.99p/m after trial
RRP $47.99
RRP $59.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781787126930
Paperback648 pages

Book Description

We start with a set of recipes on core PowerShell concepts. This will provide you with a foundation for the examples in the book. Next, you'll see how to implement some of the common exchange management shell tasks, so you can effectively write scripts with this latest release. You will then learn to manage Exchange recipients, automate recipient-related tasks in your environment, manage mailboxes, and understand distribution group management within the Exchange Management Shell.

Moving on, we'll work through several scenarios where PowerShell scripting can be used to increase your efficiency when managing databases, which are the most critical resources in your Exchange environment. Towards the end, you'll discover how to achieve Exchange High Availability and how to secure your environment, monitor the health of Exchange, and integrate Exchange with Office Online Server, Skype for Business Server, and Exchange Online (Office 365).

By the end of the book, you will be able to perform administrative tasks efficiently.

Table of Contents

Chapter 1: PowerShell Key Concepts
Introduction
Using the help system
Understanding command syntax and parameters
Command aliases
Setting up a PowerShell profile
Understanding the pipeline
Working with variables and objects
Working with arrays and hash tables
Looping through items
Creating custom objects
Using debugger functions
Understanding the new execution policy
Using the Save-Help function
Working with script repositories
Chapter 2: Exchange Management Shell Common Tasks
Introduction
Manually configuring remote PowerShell connections
Using explicit credentials with PowerShell cmdlets
Transferring files through remote shell connections
Managing domains or an entire forest using a recipient scope
Exporting reports to text and CSV files
Sending SMTP emails through PowerShell
Scheduling scripts to run at a later time
Logging shell sessions to a transcript
Automating tasks with the scripting agent
Scripting an Exchange server installation
Chapter 3: Managing Recipients
Introduction
Creating, modifying, and removing mailboxes
Working with contacts
Managing distribution groups
Managing resource mailboxes
Creating recipients in bulk using a CSV file
Configuring MailTips
Working with recipient filters
Adding and removing recipient email addresses
Hiding recipients from address lists
Configuring recipient moderation
Configuring message delivery restrictions
Managing automatic replies and out-of-office settings for a user
Adding, modifying, and removing server-side inbox rules
Managing mailbox folder permissions
Importing user photos into Active Directory
Chapter 4: Managing Mailboxes
Introduction
Reporting on mailbox sizes
Reporting on the mailbox creation time
Working with move requests and performing mailbox moves
Email notification on mailbox moves
Importing and exporting mailboxes
Deleting messages from mailboxes using Search-Mailbox
Deleting messages from mailboxes using Compliance Search
Managing disconnected mailboxes
Setting storage quotas for mailboxes
Finding email addresses with numbers
Finding mailboxes with different SIP and Primary SMTP addresses
Finding inactive mailboxes
Detecting and fixing corrupt mailboxes
Restoring deleted items from mailboxes
Managing public folder mailboxes
Reporting on public folder statistics
Managing user access to public folders
Chapter 5: Distribution Groups and Address Lists
Introduction
Reporting on distribution group membership
Adding members to a distribution group from an external file
Previewing dynamic distribution group membership
Backing up distribution groups membership
Excluding hidden recipients from a dynamic distribution group
Converting and upgrading distribution groups
Allowing managers to modify group permissions
Removing disabled users from distribution groups
Working with distribution group naming policies
Working with distribution group membership approval
Creating address lists
Exporting address list membership to a CSV file
Configuring hierarchical address books
Chapter 6: Mailbox Database Management
Introduction
Managing the mailbox databases
Moving databases and logs to another location
Configuring the mailbox database limits
Reporting on mailbox database size
Finding the total number of mailboxes in a database
Determining the average mailbox size per database
Reporting on database backup status
Restoring data from a recovery database
Chapter 7: Managing Client Access
Introduction
Managing ActiveSync, OWA, POP3, and IMAP4 mailbox settings
Setting internal and external CAS URLs
Managing Outlook Anywhere settings
Blocking Outlook clients from connecting to Exchange
Reporting on active OWA and RPC connections
Controlling ActiveSync device access
Reporting on ActiveSync devices
Chapter 8: Managing Transport Servers
Introduction
Configuring transport limits
Managing connectors
Allowing application servers to relay emails
Checking if the IP address is in a receive connector
Comparing receive connectors
Adding IP address to receive connectors
Working with custom DSN messages
Managing connectivity and protocol logs
Searching message tracking logs
Determining which email client sent an email
Working with messages in transport queues
Searching anti-spam agent logs
Implementing a header firewall
Configuring the Edge Transport server role
Chapter 9: Exchange Security
Introduction
Granting users full access permissions to mailboxes
Finding users with full access to mailboxes
Sending email messages as another user or group
Throttling client connections
Working with Role Based Access Control
Creating a custom RBAC role for administrators
Creating a custom RBAC role for end users
Troubleshooting RBAC
Generating a certificate request
Installing certificates and enabling services
Importing certificates on multiple Exchange servers
Configuring Domain Security
Configuring S/MIME for OWA
Configuring Windows Defender Exclusions
Chapter 10: Compliance and Audit Logging
Introduction
Configuring journaling
Managing archive mailboxes
Configuring archive mailbox quotas
Creating retention tags and policies
Applying retention policies to mailboxes
Placing mailboxes on retention hold
Placing mailboxes on in-place hold or litigation hold
Searching and placing a hold on public folders
Performing eDiscovery searches
Performing Compliance searches
Configuring data loss prevention
Configuring administrator audit logging
Searching the administrator audit logs
Configuring mailbox audit logging
Searching mailbox audit logs
Chapter 11: High Availability
Introduction
Creating a Database Availability Group
Adding mailbox servers to a Database Availability Group
Configuring Database Availability Group network settings
Adding mailbox copies to a Database Availability Group
Activating mailbox database copies
Reseeding a database copy
Working with lagged database copies
Using the automatic reseed feature
Performing maintenance on Database Availability Group members
Reporting on database status, redundancy, and replication
Chapter 12: Monitoring Exchange Health
Introduction
Using Exchange test cmdlets
Using Health Probe checks
Checking the server health and health sets
Monitoring transaction logs
Monitoring the disk space
Checking database redundancy
Chapter 13: Integration
Introduction
OAuth configuration
Configuring Exchange archiving for Skype for Business Server
Configuring and enabling the Unified Contact Store
Integrating Skype for Business with Outlook on the web
Configuring a user with a high-resolution photo
Office Online Server integration
Validating Exchange hybrid
Chapter 14: Scripting with the Exchange Web Services Managed API
Introduction
Getting connected to EWS
Sending email messages with EWS
Working with impersonation
Searching mailboxes
Retrieving the headers of an email message
Deleting email items from a mailbox
Creating calendar items
Exporting attachments from a mailbox
Chapter 15: Common Shell Information
Exchange Management Shell reference
Properties that can be used with the -Filter parameter
Properties that can be used with the -RecipientFilter parameter
Chapter 16: Query Syntaxes
Using the word phrase search
Using a date range search
Using the message type search
Using search operators

What You Will Learn

  • Master the new features and capabilities of PowerShell and Exchange Server 2016
  • Get to grips with the core PowerShell concepts
  • Use simple PowerShell scripts and commands to get powerful results
  • Generate detailed reports, send the output of commands by email , and schedule scripts to run automatically
  • Import, export, and move mailboxes, and delete messages from mailboxes using the command line
  • Configure transport server settings such as mail relay, tracking logs, transport rules, delivery reports, and more
  • Manage mailbox and public folders
  • Monitor the health of an Exchange environment through built-in cmdlets and other methods
  • Integrate Exchange with Office Online Server, Skype for Business Server, and Exchange Online (Office 365)

Authors

Table of Contents

Chapter 1: PowerShell Key Concepts
Introduction
Using the help system
Understanding command syntax and parameters
Command aliases
Setting up a PowerShell profile
Understanding the pipeline
Working with variables and objects
Working with arrays and hash tables
Looping through items
Creating custom objects
Using debugger functions
Understanding the new execution policy
Using the Save-Help function
Working with script repositories
Chapter 2: Exchange Management Shell Common Tasks
Introduction
Manually configuring remote PowerShell connections
Using explicit credentials with PowerShell cmdlets
Transferring files through remote shell connections
Managing domains or an entire forest using a recipient scope
Exporting reports to text and CSV files
Sending SMTP emails through PowerShell
Scheduling scripts to run at a later time
Logging shell sessions to a transcript
Automating tasks with the scripting agent
Scripting an Exchange server installation
Chapter 3: Managing Recipients
Introduction
Creating, modifying, and removing mailboxes
Working with contacts
Managing distribution groups
Managing resource mailboxes
Creating recipients in bulk using a CSV file
Configuring MailTips
Working with recipient filters
Adding and removing recipient email addresses
Hiding recipients from address lists
Configuring recipient moderation
Configuring message delivery restrictions
Managing automatic replies and out-of-office settings for a user
Adding, modifying, and removing server-side inbox rules
Managing mailbox folder permissions
Importing user photos into Active Directory
Chapter 4: Managing Mailboxes
Introduction
Reporting on mailbox sizes
Reporting on the mailbox creation time
Working with move requests and performing mailbox moves
Email notification on mailbox moves
Importing and exporting mailboxes
Deleting messages from mailboxes using Search-Mailbox
Deleting messages from mailboxes using Compliance Search
Managing disconnected mailboxes
Setting storage quotas for mailboxes
Finding email addresses with numbers
Finding mailboxes with different SIP and Primary SMTP addresses
Finding inactive mailboxes
Detecting and fixing corrupt mailboxes
Restoring deleted items from mailboxes
Managing public folder mailboxes
Reporting on public folder statistics
Managing user access to public folders
Chapter 5: Distribution Groups and Address Lists
Introduction
Reporting on distribution group membership
Adding members to a distribution group from an external file
Previewing dynamic distribution group membership
Backing up distribution groups membership
Excluding hidden recipients from a dynamic distribution group
Converting and upgrading distribution groups
Allowing managers to modify group permissions
Removing disabled users from distribution groups
Working with distribution group naming policies
Working with distribution group membership approval
Creating address lists
Exporting address list membership to a CSV file
Configuring hierarchical address books
Chapter 6: Mailbox Database Management
Introduction
Managing the mailbox databases
Moving databases and logs to another location
Configuring the mailbox database limits
Reporting on mailbox database size
Finding the total number of mailboxes in a database
Determining the average mailbox size per database
Reporting on database backup status
Restoring data from a recovery database
Chapter 7: Managing Client Access
Introduction
Managing ActiveSync, OWA, POP3, and IMAP4 mailbox settings
Setting internal and external CAS URLs
Managing Outlook Anywhere settings
Blocking Outlook clients from connecting to Exchange
Reporting on active OWA and RPC connections
Controlling ActiveSync device access
Reporting on ActiveSync devices
Chapter 8: Managing Transport Servers
Introduction
Configuring transport limits
Managing connectors
Allowing application servers to relay emails
Checking if the IP address is in a receive connector
Comparing receive connectors
Adding IP address to receive connectors
Working with custom DSN messages
Managing connectivity and protocol logs
Searching message tracking logs
Determining which email client sent an email
Working with messages in transport queues
Searching anti-spam agent logs
Implementing a header firewall
Configuring the Edge Transport server role
Chapter 9: Exchange Security
Introduction
Granting users full access permissions to mailboxes
Finding users with full access to mailboxes
Sending email messages as another user or group
Throttling client connections
Working with Role Based Access Control
Creating a custom RBAC role for administrators
Creating a custom RBAC role for end users
Troubleshooting RBAC
Generating a certificate request
Installing certificates and enabling services
Importing certificates on multiple Exchange servers
Configuring Domain Security
Configuring S/MIME for OWA
Configuring Windows Defender Exclusions
Chapter 10: Compliance and Audit Logging
Introduction
Configuring journaling
Managing archive mailboxes
Configuring archive mailbox quotas
Creating retention tags and policies
Applying retention policies to mailboxes
Placing mailboxes on retention hold
Placing mailboxes on in-place hold or litigation hold
Searching and placing a hold on public folders
Performing eDiscovery searches
Performing Compliance searches
Configuring data loss prevention
Configuring administrator audit logging
Searching the administrator audit logs
Configuring mailbox audit logging
Searching mailbox audit logs
Chapter 11: High Availability
Introduction
Creating a Database Availability Group
Adding mailbox servers to a Database Availability Group
Configuring Database Availability Group network settings
Adding mailbox copies to a Database Availability Group
Activating mailbox database copies
Reseeding a database copy
Working with lagged database copies
Using the automatic reseed feature
Performing maintenance on Database Availability Group members
Reporting on database status, redundancy, and replication
Chapter 12: Monitoring Exchange Health
Introduction
Using Exchange test cmdlets
Using Health Probe checks
Checking the server health and health sets
Monitoring transaction logs
Monitoring the disk space
Checking database redundancy
Chapter 13: Integration
Introduction
OAuth configuration
Configuring Exchange archiving for Skype for Business Server
Configuring and enabling the Unified Contact Store
Integrating Skype for Business with Outlook on the web
Configuring a user with a high-resolution photo
Office Online Server integration
Validating Exchange hybrid
Chapter 14: Scripting with the Exchange Web Services Managed API
Introduction
Getting connected to EWS
Sending email messages with EWS
Working with impersonation
Searching mailboxes
Retrieving the headers of an email message
Deleting email items from a mailbox
Creating calendar items
Exporting attachments from a mailbox
Chapter 15: Common Shell Information
Exchange Management Shell reference
Properties that can be used with the -Filter parameter
Properties that can be used with the -RecipientFilter parameter
Chapter 16: Query Syntaxes
Using the word phrase search
Using a date range search
Using the message type search
Using search operators

Book Details

ISBN 139781787126930
Paperback648 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Microsoft Exchange Server PowerShell Cookbook - Third Edition Book Cover
Microsoft Exchange Server PowerShell Cookbook - Third Edition
$ 47.99
$ 33.60
Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition Book Cover
Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition
$ 35.99
$ 25.20
Windows Server 2016 Automation with PowerShell Cookbook - Second Edition Book Cover
Windows Server 2016 Automation with PowerShell Cookbook - Second Edition
$ 47.99
$ 33.60
Microsoft Exchange 2010 PowerShell Cookbook Book Cover
Microsoft Exchange 2010 PowerShell Cookbook
$ 35.99
$ 25.20
Microsoft Exchange Server PowerShell Essentials Book Cover
Microsoft Exchange Server PowerShell Essentials
$ 27.99
$ 19.60
MDX with Microsoft SQL Server 2016 Analysis Services Cookbook - Third Edition Book Cover
MDX with Microsoft SQL Server 2016 Analysis Services Cookbook - Third Edition
$ 43.99
$ 30.80