Microsoft Exchange Server PowerShell Cookbook - Third Edition

Over 120 recipes to help you manage and administrate Exchange Server 2013 Service Pack 1 with PowerShell 5
Preview in Mapt

Microsoft Exchange Server PowerShell Cookbook - Third Edition

Jonas Andersson, Mike Pfeiffer

Over 120 recipes to help you manage and administrate Exchange Server 2013 Service Pack 1 with PowerShell 5
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $47.99
Save 79%
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
$10.00
$59.99
$29.99 p/m after trial
RRP $47.99
RRP $59.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Microsoft Exchange Server PowerShell Cookbook - Third Edition Book Cover
Microsoft Exchange Server PowerShell Cookbook - Third Edition
$ 47.99
$ 10.00
Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition Book Cover
Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition
$ 47.99
$ 10.00
Buy 2 for $20.00
Save $75.98
Add to Cart

Book Details

ISBN 139781785288074
Paperback464 pages

Book Description

Microsoft Exchange Server 2013 is a complex messaging system. Windows PowerShell 5 can be used in conjunction with Exchange Server 2013 to automate and manage routine and complex tasks to save time and money and eliminate errors.

Starting by going through key PowerShell concepts and the Exchange Management Shell, this book will get you automating tasks that used to take hours in no time. Diving deeper, you will then manage your mailbox database, client access, and your transport servers with simple but effective scripts.

This book finishes with advanced recipes on Exchange Server problems, such as managing distribution groups and maintaining high availability and security.

Table of Contents

Chapter 1: PowerShell Key Concepts
Introduction
Using the help system
Understanding command syntax and parameters
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
Working with Desired State Configuration
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 the recipient scope
Exporting reports to text and CSV files
Sending SMTP e-mails 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
Adding, modifying, and removing mailboxes
Working with contacts
Managing distribution groups
Managing resource mailboxes
Creating recipients in bulk using a CSV file
Working with recipient filters
Adding and removing recipient e-mail 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 the mailbox size
Working with move requests and performing mailbox moves
E-mail notification on mailbox moves
Importing and exporting mailboxes
Deleting messages from mailboxes
Managing disconnected mailboxes
Reporting on mailbox creation time
Setting storage quotas for mailboxes
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
Excluding hidden recipients from a dynamic distribution group
Converting and upgrading distribution groups
Allowing managers to modify group membership
Removing disabled user accounts 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 the 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
Managing connectors
Configuring transport limits
Allowing application servers to relay mail
Working with custom DSN messages
Managing connectivity and protocol logs
Searching message tracking logs
Working with messages in transport queues
Searching anti-spam agent logs
Implementing a header firewall
Configure the Edge Transport server role
Chapter 9: High Availability
Introduction
Building a Windows NLB cluster for CAS servers
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
Working with lagged database copies
Reseeding a database copy
Using the automatic reseed feature
Performing maintenance on Database Availability Group members
Reporting on database status, redundancy, and replication
Chapter 10: Exchange Security
Introduction
Granting users full access permissions to mailboxes
Finding users with full access to mailboxes
Sending e-mail messages as another user or group
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
Chapter 11: Compliance and Audit Logging
Introduction
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
Performing a discovery search
Configuring administrator audit logging
Searching the administrator audit logs
Configuring S/MIME for OWA
Chapter 12: Scripting with the Exchange Web Services Managed API
Introduction
Getting connected to EWS
Sending e-mail messages with EWS
Working with impersonation
Searching mailboxes
Retrieving the headers of an e-mail message
Deleting e-mail items from a mailbox
Creating calendar items
Exporting attachments from a mailbox

What You Will Learn

  • New features and capabilities of PowerShell 5 and Exchange Server 2013 SP1
  • Get to grips with the core PowerShell concepts required to master the Exchange Management Shell, such as pipelining, working with objects, formatting output, and writing scripts
  • Use simple PowerShell scripts and commands to get powerful effects
  • Generate detailed reports, send the output of commands in e-mail messages, and schedule scripts to run automatically
  • Import, export, 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 folder databases

Authors

Table of Contents

Chapter 1: PowerShell Key Concepts
Introduction
Using the help system
Understanding command syntax and parameters
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
Working with Desired State Configuration
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 the recipient scope
Exporting reports to text and CSV files
Sending SMTP e-mails 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
Adding, modifying, and removing mailboxes
Working with contacts
Managing distribution groups
Managing resource mailboxes
Creating recipients in bulk using a CSV file
Working with recipient filters
Adding and removing recipient e-mail 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 the mailbox size
Working with move requests and performing mailbox moves
E-mail notification on mailbox moves
Importing and exporting mailboxes
Deleting messages from mailboxes
Managing disconnected mailboxes
Reporting on mailbox creation time
Setting storage quotas for mailboxes
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
Excluding hidden recipients from a dynamic distribution group
Converting and upgrading distribution groups
Allowing managers to modify group membership
Removing disabled user accounts 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 the 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
Managing connectors
Configuring transport limits
Allowing application servers to relay mail
Working with custom DSN messages
Managing connectivity and protocol logs
Searching message tracking logs
Working with messages in transport queues
Searching anti-spam agent logs
Implementing a header firewall
Configure the Edge Transport server role
Chapter 9: High Availability
Introduction
Building a Windows NLB cluster for CAS servers
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
Working with lagged database copies
Reseeding a database copy
Using the automatic reseed feature
Performing maintenance on Database Availability Group members
Reporting on database status, redundancy, and replication
Chapter 10: Exchange Security
Introduction
Granting users full access permissions to mailboxes
Finding users with full access to mailboxes
Sending e-mail messages as another user or group
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
Chapter 11: Compliance and Audit Logging
Introduction
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
Performing a discovery search
Configuring administrator audit logging
Searching the administrator audit logs
Configuring S/MIME for OWA
Chapter 12: Scripting with the Exchange Web Services Managed API
Introduction
Getting connected to EWS
Sending e-mail messages with EWS
Working with impersonation
Searching mailboxes
Retrieving the headers of an e-mail message
Deleting e-mail items from a mailbox
Creating calendar items
Exporting attachments from a mailbox

Book Details

ISBN 139781785288074
Paperback464 pages
Read More

Read More Reviews

Recommended for You

Windows Server 2016 Cookbook Book Cover
Windows Server 2016 Cookbook
$ 47.99
$ 10.00
Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition Book Cover
Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition
$ 35.99
$ 10.00
Active Directory Disaster Recovery Book Cover
Active Directory Disaster Recovery
$ 35.99
$ 10.00
Magento 2 Developer's Guide Book Cover
Magento 2 Developer's Guide
$ 35.99
$ 10.00
Building Telephony Systems With Asterisk Book Cover
Building Telephony Systems With Asterisk
$ 17.99
$ 10.00
Mastering Windows Server 2016 Book Cover
Mastering Windows Server 2016
$ 47.99
$ 10.00