Solved

Exchange 2007 powershell scripting\command question

Posted on 2014-04-15
2
361 Views
Last Modified: 2014-04-15
Hey all, I have a problem I am hoping someone here can help. I have a Exchange server 2007 server, and I need to add the user "terry" as an owner to all the pubic folders we have (around 100).

I ran the "Add-PublicFolderClientPermission -Identity "\customer clients\customer1" -User terry -AccessRights Owner" command and it works, but I dont want to have to run the command against every single public folder, as that would take forever.

Can someone tell me a better command to use to assign her the owner role on all public folders?
0
Comment
Question by:tx_it_guy
2 Comments
 
LVL 8

Accepted Solution

by:
EEhotline earned 500 total points
ID: 40002151
In the exchange powershell goto the Scripts folder under Exchange Server:

C:\Program Files\Microsoft\Exchange Server\V14\Scripts

There are a lot of helpful scripts. the one you need is AddUsersToPFRecursive.ps1

.\\AddUsersToPFRecursive.ps1 -TopPublicFolder "\\xxxwhere to startxxx" -User "xxx_user_xxx" -Permissions Owner

or try this:

Get-PublicFolder –Identity “a publicfolder name” –Recurse | Add-PublicFolderClientPermission –User username –AccessRights Owner

Ref: http://port25guy.com/2009/11/13/how-to-apply-permissions-to-public-folder-and-all-sub-folders-in-exchange-20072010-using-exchange-management-shell/
0
 

Author Closing Comment

by:tx_it_guy
ID: 40002246
excellent!! thank you!
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question