Exchange Bok

  • View
    214

  • Download
    1

Embed Size (px)

Text of Exchange Bok

Exchange Management Shell:

TFMIlse van Criekinge

841 Latour Ct Ste D Napa, CA 94558 www.SAPIENPress.com

Exchange Management Shell: TFM by Ilse van CriekingeISBN: unassigned Printed in the United States of America First printing: November 2007 10 9 8 7 6 5 4 3 2 1 Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. SAPIEN Press cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. All marks remain the property of their respective owner(s) and are used herein only for reference. Warning and Disclaimer Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an as is basis. The author(s) and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in thi book. Get More... Online! Access downloads, technical support, and other resources for this book at www.SAPIENPress.com. Discussion forums related to this books content may be maintained at www.ScriptingAnswers.com, or on the author(s) private Web sites. If Youre Legal... We Thank You If you legally purchased this book, in either electronic or print format, both the publisher and the author(s) would like to extend their sincere gratitude. Publishers and authors earn their income from the sale of their books; that income enables them to pay for their homes, feed and support their families, and remain financially solvent. By legally purchasing this book, you are encourging technical authors everywhere to continue writing books that deliver the information you need. Thank you. Available in Print and Electronic Editions This book is available in electronic format exclusively from www.ScriptingOutpost.com. Print editions are available from all major booksellers and from www.ScriptingOutpost.com.

Publisher Ferdinand Rios Associate Publisher Don Jones

copyright 2008 SAPIEN Technologies, Inc. All rights reserved. No part of this book shall be reprduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, phtocopying, reording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author(s) assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contain herein.

Exchange Management Shell: TFM

...

iii

Exchange Management Shell: TFM

Forewordforthcoming

iv

Exchange Management Shell: TFM

About the Authorsforthcoming

v

Exchange Management Shell: TFM

Acknowledgementsforthcoming

vi

Exchange Management Shell: TFM

ContentsManaging Recipients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing Public Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing Exchange Organization Configuration . . . . . . . . . . . . . . . . . . . . . . . Managing Mailbox Server role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing Client Access Server role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing the Edge Server role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing Hub Transport Server role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing Unified Messaging Server role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring & Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Built-In Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

vii

Exchange Management Shell: TFM

Chapter 2

Managing Public FoldersEven though Public Folders have been branded as a de-emphasized feature in Exchange Server 2007, they can still be created, managed, and used. With the release of Service Pack 1, they can be managed again using a GUI, by opening the Public Folder management console. In this chapter we will dive into the EMS cmdlets that allow you to manage every manageable aspect of public folders.

Public Folder cmdletsBy running the cmdlet Get-Command, we can see that there are in total 23 cmdlets available to manage public folders.[PS] C:\>Get-Command -Noun *publicfolder* | Measure-Object Count : 23 Average : Sum : Maximum : Minimum : Property : [PS] C:\>

To get an overview of all these cmdlets, we just change the previous line to pipe the output of GetCommand to a table that only lists the name of the cmdlets that have publicfolder in the noun.

PREVIEW

Exchange Management Shell: TFM [PS] C:\>Get-Command -Noun *publicfolder* | Format-Table Name Name ---Add-PublicFolderAdministrativePermission Add-PublicFolderClientPermission Disable-MailPublicFolder Enable-MailbPublicFolder Get-MailPublicFolder Get-PublicFolder Get-PublicFolderAdministrativePermission Get-PublicFolderClientPermission Get-PublicFolderDatabase Get-PublicFolderStatistics New-PublicFolder New-PublicFolderDatabase Remove-PublicFolder Remove-PublicFolderAdministrativePermission Remove-PublicFolderClientPermission Remove-PublicFolderDatabase Resume-PublicFolderReplication Set-MailPublicFolder Set-PublicFolder Set-PublicFolderDatabase Suspend-PublicFolderReplication Update-PublicFolder Update-PublicFolderHierarchy [PS] C:\>

Managing a Public Folder DatabasePublic Folders are stored in a public folder database. When you deploy your first Exchange Server 2007 in a brand new organization, you are prompted with the question if you would like to support clients older than Microsoft Office Outlook 2007. If you select No, the Exchange mailbox server will be deployed without a public folder database. On the other hand, if you say Yes, you will automatically have a public folder database in your Exchange organization. If you are transitioning from Exchange 2000 or Exchange 2003 to Exchange 2007, you will notice that the first Exchange 2007 Mailbox Server role you deploy, also has a public folder database , named Public Folder Database, created in a storage group called Second Storage Group.[PS] C:\>Get-PublicFolderDatabase Name Server --------Public Folder Database [PS] C:\> StorageGroup -----------EX2007 Second Storage Group

Creating a Public Folder Database: New-PublicFolderDatabaseWhen you decide to create a new public folder database, you need to keep in mind the following considerations:

You can only have one public folder database per Exchange 2007 mailbox server; You cannot deploy a public folder database on a CCR clustered mailbox server, unlessPREVIEW

Exchange Management Shell: TFM

its the only public folder database in your Exchange organization; You cannot enable LCR on a storage group that contains a public folder database, unless its the only public folder database in your Exchange organization; You cannot enable SCR on a storage group that contains a public folder database, unless its the only public folder database in your Exchange organization.Every pubic folder database that you choose to create inside your Exchange organization will own the default public folder tree. It is not supported within Exchange Server 2007 to create a new application public folder tree. When you create a new public folder using EMS, you need to specify which public folder database will home the content of that public folder.[PS] C:\>New-PublicFolder -Database ex2007\second storage group\public folder database -Name Projects Name ---Projects [PS] C:\> Parent Path ----------\

Whenever a user creates a public folder using Outlook or Outlook Web Access, the public folder will be created in the public folder database that is configured for the mailbox database too which the users mailbox belongs.[PS] C:\>Get-MailboxDatabase -Identity ex2007\first storage group\mailbox database | Format-List Name,PublicFolderDatabase Name : Mailbox Database PublicFolderDatabase : EX2007\Second Storage Group\Public Folder Database [PS] C:\>

The public folder hierarchy is replicated automatically using SMTP between all Exchange mailbox servers that have a public folder database. The content of a public folder can be configured to replicate to some or all public folder databases in your Exchange organization. To create a new public folder database, you need to use the cmdlet New-PublicFolderDatabase. Table 1 lists the parameters you can use with this cmdlet. Table 1: New-PublicFolderDatabase -Parameters Parameter -Name -StorageGroup Required YES YES Description Used to specify the name of the public folder database Used to specify the storage group too which the public folder database will belong. Following values can be used: Name GUID

PREVIEW

Exchange Management Shell: TFM

-EdbFilePath

NO

-HasLocalCopy -CopyEdbFilePath

NO NO

-DomainController -TemplateInstance -Whatif -Confirm

NO NO NO NO

Used to specify the path and the database file name for the public folder database. If not added, EMS will create the database file in the storage group folder and will use the specified name as database file name. If the public folder database is created in a storage group for which LCR is enabled, you can use this parameter to configure LCR for the database. If the public folder database is created in a storage grou