Solved

PowerShell Cmdlet for Get-PublicFolder Information

Posted on 2012-03-21
7
825 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
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

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 500 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

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 how to install and use the NTBackup utility that comes with Windows Server.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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…
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…

680 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