Solved

PowerShell Cmdlet for Get-PublicFolder Information

Posted on 2012-03-21
7
818 Views
Last Modified: 2012-03-21
I'm trying to pull information from our public folders using PowerShell to determine who has permissions and who has client permission on each of them. However I keep running into problems, below is what I'm trying to do and then my cmdlet that is currently failing.

I want to be able to grab all public folders, show it's Identity, then grab that public folders Admin Permission Users and list those, then grab that public folders Client Permission User and AccessRights and list those... then move onto the next Public folder and do the same thing. Any help is greatly appreciated!


Get-PublicFolder -Recurse | Format-List Identity | Get-PublicFolderAdministrativePermission -Identity * | Format-List User | Get-PublicFolderClientPermission -Identity * | Format-List User,AccessRights >c:\admin\PublicFoldersInfo.txt
0
Comment
Question by:brendan-amex
  • 3
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:joyofsharing
Comment Utility
Dear brendan-amex,

I hope you are running the command in the Exchange Management Shell.

Kindly keep us posted.



joyofsharing ( ^ _ ^ )
0
 

Author Comment

by:brendan-amex
Comment Utility
Yes of course I am.
0
 
LVL 5

Expert Comment

by:joyofsharing
Comment Utility
Dear brendan-amex,

Thanks for letting me know.

I hope this helps you.
http://technet.microsoft.com/en-us/library/aa997615(v=exchg.80).aspx

Kindly keep us posted.


joyofsharing ( ^ _ ^ )
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:brendan-amex
Comment Utility
Thank you, I've already googled this extensively. I've seen all the Microsoft documentation and what I really need is a PS expert tell me where my error is in the syntax and help me fix it.

I think it's an issue with how I'm piping between Get-PublicFolder, Get-PublicFolderAdministrativePermission, and Get-PublicFolderClientPermission but I'm not sure.
0
 
LVL 7

Expert Comment

by:Rammestein
Comment Utility
E2k7?
0
 
LVL 7

Accepted Solution

by:
Rammestein earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:brendan-amex
Comment Utility
This helped. In the end I ended up having to run:

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Format-Table Identity,User,AccessRights | Out-File c:\Output.txt -Width 400

Then I had to run it again for Get-PublicFolderAdministrativePermission but in the end I got what I wanted. Thanks.
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
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…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

772 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

12 Experts available now in Live!

Get 1:1 Help Now