Solved

PowerShell Cmdlet for Get-PublicFolder Information

Posted on 2012-03-21
7
822 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
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.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Read this checklist to learn more about the 15 things you should never include in an email signature.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
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…

821 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