Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing user access to public folders


Client permissions for public folders can be managed using a handful of cmdlets that are available in the Exchange Management Shell. In addition, there are some scripts located in the Exchange scripts directory that can be used to make client permission changes in bulk. In this recipe, we will take a look at how you can use both methods to manage public folder client permissions.

How to do it...

To grant Owner permissions to a user on a public folder, use the following command:

Add-PublicFolderClientPermission -Identity \Marketing `
-User Mike `
-AccessRights Owner `
-Server MBX1

How it works...

The Add-PublicFolderClientPermissions cmdlet can be used to add permissions for a particular user to a public folder. In the previous example, we granted the user Mike the Owner access right to the Marketing public folder using the -AccessRights parameter. There are several possible values for this parameter, as shown next:

  • ReadItems: The user assigned this right...