Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PowerShell Cmdlet for Get-PublicFolder Information

Posted on 2012-03-21
7
Medium Priority
?
843 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
[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
  • 3
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:joyofsharing
ID: 37748534
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
ID: 37748547
Yes of course I am.
0
 
LVL 5

Expert Comment

by:joyofsharing
ID: 37748605
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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:brendan-amex
ID: 37748660
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
ID: 37749069
E2k7?
0
 
LVL 7

Accepted Solution

by:
Rammestein earned 2000 total points
ID: 37749128
0
 

Author Closing Comment

by:brendan-amex
ID: 37750338
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

Is Your AD Toolbox Looking More Like a Toybox?

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

688 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