Book description
Make the most of PowerShell's features to manage all aspects of your Exchange Server 2016 environment.
About This Book
- Learn to integrate PowerShell with Exchange Server 2016
- Write scripts and functions to run tasks automatically, and generate complex reports with PowerShell
- Use these effective recipes to learn all popular and important PowersShell scripts to manage tasks and avoid errors
Who This Book Is For
This book is for messaging professionals who want to build real-world scripts with Windows PowerShell and the Exchange Management Shell. You'll also find it indispensable if you're a network or systems administrator responsible for managing and maintaining Exchange Server 2016.
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)
In Detail
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.
Style and approach
This practical guide is packed with handy recipes to help you perform common administration tasks, as well as complex tasks in Exchange Server, without any hassle.
Table of contents
- Preface
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
- Monitoring Exchange Health
-
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
- Scripting with the Exchange Web Services Managed API
- Common Shell Information
- Query Syntaxes
Product information
- Title: Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition
- Author(s):
- Release date: July 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787126930
You might also like
book
Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition
Benefit from over 120 recipes that tackle the everyday issues that arise with Microsoft Exchange Server. …
book
Microsoft Exchange 2010 PowerShell Cookbook
This brilliant Cookbook is packed with step-by-step instructions on writing scripts for Exchange 2010. You'll be …
video
Microsoft Exchange Server 2016
10+ Hours of Video Instruction Learn from an expert while you become the expert. This video …
book
Windows Server 2016 Automation with PowerShell Cookbook - Second Edition
Over 100 recipes to help you leverage PowerShell to automate Windows Server 2016 manual tasks About …