Home > Store

Exchange Server 2010 Portable Command Guide: MCTS 70-662 and MCITP 70-663

Register your product to gain access to bonus material or receive a coupon.

Exchange Server 2010 Portable Command Guide: MCTS 70-662 and MCITP 70-663


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2011
  • Edition: 1st
  • Book
  • ISBN-10: 0-7897-4736-7
  • ISBN-13: 978-0-7897-4736-5

Exchange Server 2010 Portable Command Guide

MCTS 70-662 and MCITP 70-663


Richard Robb

Darril Gibson


All the MCTS 70-662 and MCITP 70-663 Commands in One Compact, Portable Resource


Maximize your efficiency as an Exchange Server 2010 administrator, and master the commands, keywords, command arguments, options, and prompts covered on Microsoft’s MCTS 70-662 and MCITP 70-663 exams! This easy, handy reference brings together all the techniques, tips, tools, and examples you’ll need. It’s your perfect take-anywhere guide to running Exchange Server 2010 environments—and passing Microsoft’s two key Exchange Server 2010 administration exams.


Covers all the commands you need to score higher on your MCTS 70-662 and MCITP 70-663 exams!

  • Master Exchange Server 2010’s newest administration features
  • Plan and implement deployments and upgrades
  • Use bulk management tools to administer multiple recipients or mailboxes
  • Configure hub and edge transport, rules, and agents
  • Work with mailboxes, mailbox servers, databases, and public folders
  • Set up Client Access Server, Outlook access, and certificates
  • Maximize availability with Database Availability Groups (DAGs)
  • Recover from multiple forms of server failure
  • Use default message routing and Exchange hub sites
  • Implement and operate Unified Messaging (UM)
  • Integrate Exchange Server 2010 into older Exchange environments
  • Use scripts to automate administration
  • Configure Role-Based Access Control (RBAC) permissions
  • Leverage Exchange Management Shell’s reporting capabilities
  • Troubleshoot Exchange Server with Test cmdlets

Your Perfect Take-Anywhere Exchange Server 2010 Command Resource!

  • Covers PowerShell commands on the MCTS 70-662 and MCITP 70-663 exams
  • Includes important administration commands that aren’t on the exams
  • Packed with realistic scenarios, high-efficiency examples, and expert tips
  • Includes many of the new SP1 cmdlets!

Category: Microsoft Certification

Covers: Exchange Server 2010 Exams (MCTS 70-662 and MCITP 70-663)

Sample Content

Online Sample Chapter

Exchange Server 2010 Portable Command Guide: Advanced Techniques

Table of Contents

Introduction xvi

Part I: An Overview of Windows PowerShell 2.0 for Exchange 2010

Chapter 1 New Features and the Exchange Management Shell 1

What’s New in PowerShell 2.0 1

What Is a Cmdlet? 4

The Exchange Management Shell 6

Chapter 2 Basic Techniques 11

Using the GUI 11

Understanding the Basic Syntax of a cmdlet 12

    Basic Syntax: Some Common Cmdlets Using the Get Verb 16

    Basic Syntax: Some Common Parameters 27

Finding the Right Cmdlet 31

Finding Help for the Right Cmdlet 32

    What’s Included in Each Version of Help 33

Using the Tab Completion Feature 34

Part II: Achieving a Comfort Level with PowerShell

Chapter 3 Advanced Techniques 37

Working with Pipelines 37

Running Programs 41

Creating and Running Scripts 42

Registry Modifications with PowerShell 48

Understanding Quotes 48

Chapter 4 Customizing the PowerShell Environment 51

Creating and Using PowerShell Profiles 51

Using Built-in Aliases 56

Working with User-Defined Aliases 57

Filtering Output 59

Formatting Output 60

Part III: PowerShell and the Exchange 2010 Deployment Process

Chapter 5 Standard Deployments 65

Deploying Prerequisites for All Versions of Exchange Server 2010 on Windows Server 2008 Operating Systems 65

Deploying Prerequisites for Exchange Server 2010 RTM (Release-to-Manufacturing) on Windows Server 2008 SP2 66

Deploying Prerequisites for Exchange Server 2010 RTM on Windows Server 2008 SP2 67

Deploying Prerequisites for Exchange Server 2010 RTM on Windows Server 2008 R2 69

Deploying Prerequisites for Exchange Server 2010 SP1 on Windows Server 2008 R2 72

Setup Options for Exchange Server 2010 RTM 74

Upgrading from Exchange Server 2010 RTM to SP1 78

Using the Exchange 2010 Deployment Assistant 80

Chapter 6 Disaster Recovery Deployments 83

Recovering from a Single Role Failure 83

Recovering from a Multiple-Role Failure on the Same Server 85

Recovering from a Database Availability Group (DAG) Member Server Failure 89

Part IV: PowerShell and Recipient Objects

Chapter 7 Working with Recipient Objects 93

Identifying the Exchange 2010 Recipient Types 93

Creating and Managing a User Mailbox 101

Creating and Managing a Mail-Enabled User 104

Creating and Managing a Mail-Enabled Contact 106

Creating and Managing Resource Mailboxes 108

Working with Distribution Groups 109

Converting Recipient Types 112

Creating and Managing Email Address Policies 113

Creating and Managing Address Lists 116

Chapter 8 Bulk Management of Recipients 121

Creating Multiple Recipients 121

Modifying Multiple Recipients 129

Reconnecting Multiple Disconnected Mailboxes 133

Part V: PowerShell and the Transport Roles Message Routing

Chapter 9 The Hub Transport Role 135

Configuring Accepted and Remote Domains 135

    Get-AcceptedDomain 136

    New-AcceptedDomain 136

    Set-AcceptedDomain 137

    Remove-AcceptedDomain 137

    Get-RemoteDomain 138

    New-RemoteDomain 138

    Set-RemoteDomain 138

Managing Email Address Policies 141

Working with SMTP Connectors and Other Transport Objects 144

    Send Connectors 144

    Receive Connectors 148

    Other Transport Cmdlets 151

Working with Routing Group Connectors 152

Managing Transport Queues 154

Chapter 10 The Edge Transport Role 157

Creating an Edge Subscription 157

Edge Synchronization 159

Cloning an Edge Transport 161

Address Rewriting 165

Chapter 11 Configuring Rules and Agents on Transport Servers 169

Transport Rules and Transport Agents 169

    Transport Rules 169

    Transport Agents 173

Journaling Rules and Journaling Agents 174

    Journaling Rules 174

    Journaling Agents 176

Anti-Spam Agents 177

Part VI: PowerShell and the Client Access Server Role

Chapter 12 CAS Services 179

Configuring Outlook Access 179

Enabling and Configuring Outlook Anywhere Access 180

Enabling and Configuring OWA Access 181

Configuring POP3 and IMAP4 182

Configuring the Autodiscover Service 183

Configuring the Offline Address Book (OAB) 184

Chapter 13 Working with Certificates 187

Types of Certificates 187

Generating a Certificate Request 187

Importing the Certificate 191

Enabling the Certificate 192

Part VII: PowerShell and the Mailbox Role

Chapter 14 Mailbox Servers and Databases 193

Configuring the Properties of a Mailbox Server 193

Creating and Mounting a New Database 194

Managing an Existing Database 196

Removing an Existing Database 201

Chapter 15 Working with Mailboxes 203

Exporting a Mailbox 203

Importing a Mailbox 207

Moving an Online Mailbox 208

Running the Clean-MailboxDatabase Cmdlet 211

Chapter 16 Using the Recovery Database (RDB) 213

Creating the Recovery Database (RDB) 213

Restoring a Database to the RDB 216

Removing the RDB 218

Part VIII: PowerShell and the Unified Messaging Role

Chapter 17 Working with Unified Messaging (UM) Role Objects 219

Configuring the Properties of a UM Server 219

Creating and Managing Dial Plans 220

Creating and Managing UM IP Gateways 223

Creating and Managing Hunt Groups 224

Creating and Managing UM Mailbox Policies 225

Monitoring and Troubleshooting a UM Server 226

Chapter 18 Managing Unified Messaging (UM) Users 229

Managing the UM Auto Attendant 229

Working with Call Answering Rules 234

Exporting UM Call Data Records 234

Working with UM-Enabled Mailboxes 235

Part IX: PowerShell and Message Routing

Chapter 19 Exchange Server 2010 Message Routing 239

Using Default Message Routing 239

Using Exchange Hub Sites 241

Using Exchange-Specific Costs on Site Links 242

Tracking Messages with PowerShell 246

Chapter 20 Integrating Exchange Server 2010 into an Existing Exchange Server 2003 Environment 249

Configuring Routing with Exchange Server 2003 249

Suppressing Link State Updates On Exchange 2003 Bridgehead Servers 253

Part X: PowerShell and High Availability in Exchange 2010

Chapter 21 Database Availability Groups (DAGs) 255

Creating and Configuring a DAG 255

Adding or Removing a DAG Member 260

Recovering a Failed DAG Member 263

Creating and Configuring a DAG Network 265

Removing a DAG 268

Chapter 22 Mailbox Database Copies 269

Adding and Configuring a Mailbox Database Copy 269

Moving the Active Mailbox Database Copy to a New Location 272

Suspending or Resuming a Mailbox Database Copy 274

Updating a Mailbox Database Copy 276

Removing a Copy of a Mailbox Database 276

Chapter 23 Using DAG to Mitigate Failures 277

Activating a Mailbox Database Copy on Another DAG Member 277

Activating a Lagged Mailbox Database Copy on Another DAG Member 279

Switching Over to Another DAG Member 282

Switching Over to Another Datacenter 283

Enabling Datacenter Activation Coordination (DAC) Mode 285

Chapter 24 Monitoring Highly Available Databases 289

Monitoring Using the Exchange Management Console 289

Monitoring Using PowerShell Cmdlets 290

Monitoring Using Event Viewer 291

Monitoring Using PowerShell Scripts 293

Part XI: PowerShell and Public Folders

Chapter 25 Public Folder Database Management 297

Installing Public Folders 297

Creating a Public Folder Database 298

Configuring a Public Folder Database 299

Removing a Public Folder Database 301

Chapter 26 Managing Public Folders 303

Assigning a Default Public Folder Database to a Mailbox Database 303

Creating and Managing Public Folders 305

Replicating Public Folders 307

Removing a Public Folder 308

Chapter 27 Public Folder Permissions 309

Adding Administrative Permissions to the Folder Structure 309

Controlling Top-level Public Folders 312

Setting Client Permissions to Public Folder Content 312

Part XII: Troubleshoot Exchange Server 2010 Using PowerShell

Chapter 28 Troubleshooting with the Test Cmdlets 315

Using Test Cmdlets for All Roles 315

Using Test Cmdlets for the Mailbox Role 317

Using Test Cmdlets for the Transport Roles 318

Using Test Cmdlets for the Client Access Server Role 320

Using Test Cmdlets for the Unified Messaging Role 321

Using Test Cmdlets for Client Connectivity 321

Using Helpful Non-Exchange Test Cmdlets 323

Chapter 29 Event Logging with PowerShell 325

Retrieving Events with Get-EventLog 325

Setting Diagnostic Event Log Levels 328

Part XIII: PowerShell and Automating Exchange Server 2010 Administration

Chapter 30 Using and Finding Scripts to Automate 331

Using Scripts to Automate Tasks in PowerShell 331

Finding Scripts to Automate Tasks in PowerShell 335

Part XIV: Monitoring Role-Based Access Control (RBAC) Permissions, Mailbox Audit Logging, and Reporting with PowerShell in Exchange Server 2010

Chapter 31 Configuring Role-Based Access Control (RBAC) Permissions 339

Creating and Managing a Management Role Group 339

Adding Members to the Management Role Group 341

Retrieving Information about Role Groups and Role Group Members 343

Setting and Viewing Management Scopes 345

Chapter 32 Using Mailbox Audit Logging to Monitor Exchange Server 347

Enabling Mailbox Audit Logging 347

Initiating Administrative Actions to Test Mailbox Audit Logging 349

Initiating a Search of the Mailbox Audit Log 352

Chapter 33 Reporting and Other Useful Cmdlets 355

Obtaining Information about a Mailbox with Get-MailboxStatistics 355

Retrieving Logon Information about Currently Active Sessions with Get-LogonStatistics 359

Using Other Useful Cmdlets 361

Appendix A Lab Environment Used for This Book 367

The Platform on Which the Virtual Machines Ran During the Writing of This Book 367

The Lab Environment Used in this Book 368

Creating Test Users and Mailboxes for the Lab Environment 369

Conclusion 372

Appendix B Create Your Own Journal Here 373

9780789747365   TOC   5/11/2011


Submit Errata

More Information

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Pearson IT Certification products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.pearsonitcertification.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020