Solved

Exchange 2007 powershell scripting\command question

Posted on 2014-04-15
2
356 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
Comment Utility
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
Comment Utility
excellent!! thank you!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
In this video we show how to create an email address policy 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 Mail Flow…
how to add IIS SMTP to handle application/Scanner relays into office 365.

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now