?
Solved

Exchange 2007 powershell scripting\command question

Posted on 2014-04-15
2
Medium Priority
?
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
EEhotline earned 2000 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
In-place Upgrading Dirsync to Azure AD Connect
To show how to generate a certificate request 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 Servers >> Certificates…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

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