Microsoft Exchange 2010 PowerShell Cookbook


Microsoft Exchange 2010 PowerShell Cookbook
eBook: $35.99
Formats: PDF, PacktLib, ePub and Mobi formats
$30.59
save 15%!
Print + free eBook + free PacktLib access to the book: $95.98    Print cover: $59.99
$59.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Step-by-step instructions on how to write scripts for nearly every aspect of Exchange 2010 including the Client Access Server, Mailbox, and Transport server roles
  • Understand the core concepts of Windows PowerShell 2.0 that will allow you to write sophisticated scripts and one-liners used with the Exchange Management Shell
  • Learn how to write scripts and functions, schedule scripts to run automatically, and generate complex reports
  • Rapidly provision and modify recipients in bulk using simple commands

Book Details

Language : English
Paperback : 480 pages [ 235mm x 191mm ]
Release Date : July 2011
ISBN : 1849682461
ISBN 13 : 9781849682466
Author(s) : Mike Pfeiffer
Topics and Technologies : All Books, Enterprise Products and Platforms, Microsoft Servers, Cookbooks, Enterprise, Microsoft

Table of Contents

Preface
Chapter 1: PowerShell Key Concepts
Chapter 2: Exchange Management Shell Common Tasks
Chapter 3: Managing Recipients
Chapter 4: Managing Mailboxes
Chapter 5: Distribution Groups and Address Lists
Chapter 6: Mailbox and Public Folder Databases
Chapter 7: Managing Client Access
Chapter 8: Managing Transport Servers
Chapter 9: High Availability
Chapter 10: Exchange Security
Chapter 11: Compliance and Audit Logging
Chapter 12: Server Monitoring and Troubleshooting
Chapter 13: Scripting with the Exchange Web Services Managed API
Appendix A
Appendix B
Index
  • Chapter 1: PowerShell Key Concepts
    • Introduction
    • Understanding command syntax
    • and parameters
    • Using the help system
    • Understanding the pipeline
    • Working with variables and objects
    • Formatting output
    • Working with arrays and hash tables
    • Looping through items
    • Using flow control statements
    • Creating custom objects
    • Creating PowerShell functions
    • Creating and running scripts
    • Setting up a profile
    • Chapter 2: Exchange Management Shell Common Tasks
      • Introduction
      • Using command discovery through the Exchange Management Console
      • Manually configuring remote PowerShell connections
      • Transferring files through remote shell connections
      • Dealing with concurrent pipelines in remote PowerShell
      • Managing domains or an entire forest using recipient scope
      • Using explicit credentials with PowerShell cmdlets
      • 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
          • Performing some basic steps
          • Reporting on the mailbox size
          • Working with move requests and performing mailbox moves
          • Importing and exporting mailboxes
          • Deleting messages from mailboxes
          • Managing disconnected mailboxes
          • Generating mailbox folder reports
          • Reporting on mailbox creation time
          • Checking mailbox logon statistics
          • Setting storage quotas for mailboxes
          • Finding inactive mailboxes
          • Detecting and fixing corrupt mailboxes
          • Restoring deleted items from mailboxes
          • 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 and Public Folder Databases
              • Introduction
              • Managing the mailbox and the public folder databases
              • Moving databases and logs to another location
              • Configuring the mailbox and public folder 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
              • Configuring public folder replication
              • Managing user access to public folders
              • Reporting on public folder statistics
              • Chapter 7: Managing Client Access
                • Introduction
                • Creating an RPC Client Access array
                • Configuring the CAS server used by RPC clients
                • Configuring RPC encryption requirements
                • 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
                  • Managing connectors
                  • Configuring transport limits
                  • Allowing application servers to relay mail
                  • Managing transport rules
                  • Working with custom DSN messages
                  • Managing connectivity and protocol logs
                  • Message tracking logs
                  • Working with messages in transport queues
                  • Searching anti-spam agent logs
                  • Implementing a header firewall
                  • 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
                    • 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 (RBAC)
                      • Creating a custom RBAC role for administrators
                      • Creating a custom RBAC role for end users
                      • Troubleshooting Role Based Access Control
                      • 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
                        • Performing a discovery search
                        • Placing mailboxes on litigation hold
                        • Enabling mailbox audit logging
                        • Generating mailbox audit log reports
                        • Configuring Administrator Audit Logging
                        • Searching administrator audit logs
                        • Chapter 12: Server Monitoring and Troubleshooting
                          • Introduction
                          • Managing and monitoring services
                          • Verifying server connectivity
                          • Working with the event logs
                          • Reporting on disk usage
                          • Checking CPU utilization
                          • Monitoring memory utilization
                          • Reporting on Exchange Server uptime
                          • Troubleshooting the Mailbox role
                          • Troubleshooting the Client Access
                          • Server role
                          • Troubleshooting Transport servers
                          • Verifying certificate health
                          • Chapter 13: 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
                            • Exchange Management Shell reference
                            • Advanced Query Syntax

                            Mike Pfeiffer

                            Mike Pfeiffer has been in the IT field for 15 years, and has been working on Exchange for the majority of that time. He is a Microsoft Certified Master and a former Microsoft Exchange MVP. These days he works at Microsoft as a Premier Field Engineer where he helps customers deploy and maintain Microsoft Exchange and Lync Server solutions. You can find his writings online at mikepfeiffer.net, where he occasionally blogs about Exchange, Lync, and PowerShell-related topics.
                            Sorry, we don't have any reviews for this title yet.

                            Code Downloads

                            Download the code and support files for this book.


                            Submit Errata

                            Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                            Errata

                            - 5 submitted: last submission 11 Jan 2013

                            Errata type: Others | Page number: 1 & 2 | Errata date: 14 Aug 2011

                            the first and second paragraph are exactly the same - duplicate.
                            On the first page with code - missing the - in front of Identity with the Get-Mailbox cmdlet
                            Next page - the same get command missing the - for MaxSendSize.

                             

                            Errata type: Typo | Page number: 21 | Errata date: 21 Oct 2011

                            PowerShell also provides a - Split operator that can split a string into or more substrings.

                            The correct statement is "PowerShell also provides a - Split operator that can split a string into two or more substrings."

                             

                            Errata type: Typo | Page number: 9 | Errata date: 21 Oct 2011

                            You can download the example code fles for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the fles e-mailed directly to you.

                            The correct statement should be

                            "You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you."

                             

                             

                            Errata type: Typo | Page number: 17 | Errata date: 7 Feb 2012

                            The single most import ant concept in PowerShell.

                            The correct statement should be "The single most important concept in PowerShell"

                             

                            Errata type: Code | Page number: 35

                            The following code snippet:

                            switch($DB1.DatabaseSize) {
                              {$_ -gt 5gb} {"Larger than 5gb"; break}
                              {$_ -gt 10gb} {"Larger than 10gb"; break}
                              {$_ -gt 15gb} {"Larger than 15gb"; break}
                              {$_ -gt 20gb} {"Larger than 20gb"; break}
                              Default {"Smaller than 5gb"}
                            }

                            Should be:

                            switch($DB1.DatabaseSize) {
                              {$_ -gt 20} {"Larger than 20gb"; break}
                              {$_ -gt 15} {"Larger than 15gb"; break}
                              {$_ -gt 10} {"Larger than 10gb"; break}
                              {$_ -gt 5} {"Larger than 5gb"; break}
                              Default {"Smaller than 5gb"}
                            }

                            Sample chapters

                            You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                            Frequently bought together

                            Microsoft Exchange 2010 PowerShell Cookbook +    Citrix XenServer 6.0 Administration Essential Guide =
                            50% Off
                            the second eBook
                            Price for both: $51.15

                            Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                            What you will learn from this book

                            • 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
                            • Understand how to generate detailed reports, send the output of commands in e-mail messages, and schedule scripts to run automatically
                            • Build provisioning scripts that create mailboxes, contacts, and distribution groups in bulk
                            • Learn how to import, export, move mailboxes, and delete messages from mailboxes using the command line
                            • Manage mailbox and public folder databases
                            • Manage Database Availability Groups (DAGs) including installation, configuration, maintenance, and reporting
                            • Configure Transport server settings such as mail relay, tracking logs, transport rules, delivery reports, and more
                            • Discover how to manage Exchange 2010 security features such as mailbox and folder permissions and Role Based Access Control (RBAC)
                            • Configure audit compliance settings such as retention policies, personal archives, discover search, and administrator audit logging
                            • Monitor server resources including CPU, Memory, Disk, Event Logs, and more using PowerShell

                            In Detail

                            Microsoft Exchange Server 2010 is a complex messaging system with many features. In order to ease the burden on IT administrations, Exchange 2010 supports a management architecture built on Windows PowerShell 2.0, called the Exchange Management Shell. Using this management architecture, administrators can gain more efficiency then ever by automating routing tasks through PowerShell scripts and one-liners that save time and eliminate errors.

                            This focused practical cookbook will show you how to manage and maintain your Microsoft Exchange Server 2010 environment with Windows PowerShell 2.0 and the Exchange Management Shell. It provides recipes for solving common scripting tasks and problems based on real-world scenarios.

                            The book is full of practical, immediately usable task-based recipes that will enable you to manage and maintain your Microsoft Exchange 2010 environment with Windows PowerShell 2.0 and the Exchange Management Shell. It starts with key PowerShell concepts that lay the foundation for the scripting examples used throughout the book. You will then move on to common Exchange Management Shell tasks, enabling you to get connected to servers, run reports, and automate tasks. The book then takes you on a deep dive into topics such as Managing Recipients, Managing Mailboxes, Distribution Groups and Address Lists, Mailbox and Public Folder Databases, Client Access Servers, Transport and High Availability, amongst others.

                            Approach

                            This book is written in a cookbook-style format and provides practical, immediately usable task-based recipes that show you how to manage and maintain your Microsoft Exchange Server 2010 environment with Windows PowerShell 2.0. Each chapter of the book is written so that it can be used as a desktop reference, or it can be read from beginning to end, allowing you to build a solid foundation for building scripts in your Exchange environment.

                            Who this book is for

                            This book is for messaging professionals who want to learn how to build real-world scripts with Windows PowerShell 2.0 and the Exchange Management Shell. If you are a network or systems administrator responsible for managing and maintaining Exchange Server 2010, then this book is for you. The recipes in this cookbook touch on each of the core Exchange 2010 server roles and require a working knowledge of supporting technologies including Windows Server 2008 or Windows Server 2008 R2, Active Directory, and DNS. This book covers the latest additions to Exchange Server 2010 including Service Pack 1. A basic understanding of Exchange Server 2010 and Windows PowerShell 2.0 is highly recommended.

                            Code Download and Errata
                            Packt Anytime, Anywhere
                            Register Books
                            Print Upgrades
                            eBook Downloads
                            Video Support
                            Contact Us
                            Awards Voting Nominations Previous Winners
                            Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                            Resources
                            Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software