ebook img

Microsoft Exchange 2010 PowerShell Cookbook: Manage and maintain your Microsoft Exchange 2010 environment with Windows PowerShell 2.0 and the Exchange Management Shell PDF

480 Pages·2011·7.72 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Microsoft Exchange 2010 PowerShell Cookbook: Manage and maintain your Microsoft Exchange 2010 environment with Windows PowerShell 2.0 and the Exchange Management Shell

Microsoft Exchange 2010 PowerShell Cookbook Manage and maintain your Microsoft Exchange 2010 environment with Windows PowerShell 2.0 and the Exchange Management Shell Mike Pfeiffer BIRMINGHAM - MUMBAI Microsoft Exchange 2010 PowerShell Cookbook Copyright © 2011 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: July 2011 Production Reference: 1150711 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-849682-46-6 www.packtpub.com Cover Image by Artie Ng ([email protected]) Credits Author Project Coordinator Mike Pfeiffer Zainab Bagasrawala Reviewers Proofreader Jason Helmick Lucy Henson Shay Levy Indexer Robert Martin Monica Ajmera Mehta Anderson Patricio Production Coordinator Acquisition Editor Melwyn D’sa Kerry George Cover Work Development Editor Melwyn D’sa Gaurav Mehta Technical Editors Neha Damle Joyslita D’Souza Aditi Suvarna About the Author Mike Pfeiffer has been in the IT field for over 13 years, spending most of his time as an enterprise consultant focused on Active Directory and Exchange implementation and migration projects. He is a Microsoft Certified Master on Exchange 2010, and a Microsoft Exchange MVP. You can find his writings online at mikepfeiffer.net, where he blogs regularly about Exchange Server and PowerShell-related topics. I’d like to thank my wife Abby and my daughter Isabel for their love, support, and patience with me while I was locked away in my office writing this book. I’d also like to thank the technical reviewers, Jason Helmick, Shay Levy, Anderson Patricio, and Robert Martin for their hard work, dedication, and contributions to the technical community. About the Reviewers Jason Helmick is an instructor at Interface Technical Training and has spent 19 years as an IT professional including experience with enterprise-level infrastructure and systems deployment, e-commerce, and n-tier software development and management. Jason specializes in PowerShell and Exchange. He and Mike Pfeiffer are the founders and hosts of the Arizona PowerShell User Group (http://www.azposh.com). You can check out Jason’s blog at http://www.jasonhelmick.com or you can catch him on twitter at @thejasonhelmick. To my loving wife and daughter, thanks for making the work easy. To Mike Pfeiffer, thanks for making an awesome book! To Jeffrey Snover, thanks for creating PowerShell. Shay Levy is a Windows PowerShell MVP and System Administrator for a government institute in Israel. He has worked with Microsoft platforms for more than 20 years, focusing on Microsoft Exchange and Active Directory. As a long time PowerShell community supporter, he has become a moderator of multiple forums and a co-director of the PowerShellCommunity.org website. He is the creator of the popular PowerShell Community browser toolbar, a one-stop shop for various PowerShell resources such as downloads, webcasts, videos, podcasts, and more. He often covers PowerShell-related topics on his blog http://PowerShay.com. You can also follow him on Twitter at http://twitter.com/ShayLevy. Robert Martin has been in the IT Industry for over 15 years and is a senior consultant specializing in VMware and Exchange. Robert has achieved several certifications over the years, demonstrating his commitment to the industry. Among others, his certifications include VCP3, VCP4, MCSA, CCNA, CNA, CCA, A+, and HP Accredited Platform Specialist. Robert dedicates much of his time to automating daily tasks and tasks of his peers in PowerShell and C#. In addition, Robert maintains a VMware, Exchange, and PowerShell blog as his way of sharing solutions to daily tasks with other administrators. Robert currently works for Choice Hotels International in Phoenix, AZ. For more information about Robert Martin or the scripts he contributes, visit his blog at http://robertwmartin.com. Anderson Patricio is an Exchange MVP and works as a messaging consultant for clients located in the South and North America. He has been working with Exchange since version 5 of the product and he has had the opportunity to use PowerShell since the beta release (code name Monad at that time). Anderson is a TechEd presenter in South America and he has an exchange resource site in Portuguese with several articles about Exchange, PowerShell, and Active Directory and he also publishes monthly articles at MSExchange.org in English. He is the reviewer of Windows PowerShell in Action by Bruce Payette and PowerShell in Practice by Richard Siddaway. www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and, as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@ packtpub.com for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read, and search across Packt's entire library of books. Why subscribe?  Fully searchable across every book published by Packt  Copy and paste, print, and bookmark content  On demand and accessible via web browser Free access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. Instant updates on new Packt books Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page. Table of Contents Preface 1 Chapter 1: PowerShell Key Concepts 7 Introduction 8 Understanding command syntax 8 and parameters 8 Using the help system 13 Understanding the pipeline 17 Working with variables and objects 20 Formatting output 24 Working with arrays and hash tables 27 Looping through items 32 Using flow control statements 34 Creating custom objects 38 Creating PowerShell functions 42 Creating and running scripts 47 Setting up a profile 50 Chapter 2: Exchange Management Shell Common Tasks 53 Introduction 54 Using command discovery through the Exchange Management Console 55 Manually configuring remote PowerShell connections 58 Transferring files through remote shell connections 61 Dealing with concurrent pipelines in remote PowerShell 63 Managing domains or an entire forest using recipient scope 65 Using explicit credentials with PowerShell cmdlets 67 Exporting reports to text and CSV files 68 Sending SMTP e-mails through PowerShell 72 Scheduling scripts to run at a later time 75 Logging shell sessions to a transcript 77

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.