?
Solved

Export Public Folder List to CSV File without truncating data

Posted on 2013-01-10
10
Medium Priority
?
5,545 Views
Last Modified: 2013-01-10
Hello,

I am trying to export a list of all of our public folders, the users who have permissions to the folder, and the type of permission they have.  I have a powershell command that works well, but the data get's truncated.  Is there a way to export list of data without it truncating.  Ideally I want this data in an Excel Spreadsheet with columns and rows

Here is the powershell command I use:  

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission > c:\Output2.txt

but the output truncates the data after 39 characters and places two .. at the end.

I feel like I am almost there.

Thanks,

Jeff
0
Comment
Question by:jpierce26
[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
  • 3
  • 2
  • +1
10 Comments
 
LVL 13

Expert Comment

by:imkottees
ID: 38763708
Hi,
Try this..
Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Export-CSV "C:\PFPermissions.csv

you might be interesting about these as well..
http://www.tech-archive.net/Archive/Exchange/microsoft.public.exchange.admin/2008-07/msg01821.html
http://powershellcommunity.org/Forums/tabid/54/aft/7545/Default.aspx
0
 

Author Comment

by:jpierce26
ID: 38763721
I just get a double ">>"
0
 
LVL 15

Expert Comment

by:Rajkumar-MCITP
ID: 38763729
to get full details

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission -wrap -autosize > c:\Output2.txt
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 13

Expert Comment

by:imkottees
ID: 38763734
i missed ending quote..

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Export-CSV "C:\PFPermissions.csv"

this also work..
Get-PublicFolder -Identity \ -recurse -Server <pf server name> |
Get-PublicFolderClientPermission -server <pf server name> | fl | out-file
PFPermissions.txt
0
 
LVL 15

Expert Comment

by:Rajkumar-MCITP
ID: 38763742
There is a type on imkottees commmand

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Export-CSV "C:\PFPermissions.csv"

Its not closed

You can try that too...

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission -Wrap -AutoSize |Export-CSV "C:\PFPermissions.csv"
0
 

Author Comment

by:jpierce26
ID: 38763779
@rasjkumar I get an error that "wrap" is not a parameter name.

 Error:  "A parameter cannot be found that matches parameter name 'wrap'"

@imkottees
My command had given specific permissions such as for example (author, editor, publishing editor etc...)  Your command only gives me something that doesn't make sense.  I haven't tried your other suggestion yet.  I will now

System.Collections.ObjectModel.Collection`1[Microsoft.Exchange.Management.MapiTasks.PublicFolderAccessRight]

Any suggestions?
0
 
LVL 40

Accepted Solution

by:
Subsun earned 1680 total points
ID: 38763781
Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Select Identity,User,{$_.AccessRights} | Export-CSV "C:\PFPermissions.csv"

Open in new window

0
 

Author Comment

by:jpierce26
ID: 38763810
@imkottees

Your second suggestion gave me the info, but the output is txt and the data is grouped such that I can't import into Excel as columns and rows.

@Subsun  That looks like it is what I am looking for.  The permissions column looks a little different than my original command whereas I only had a single entry for the permissions, but in some cases i get this long list of permissions that seem to be concatenated.

Example:

ReadItems CreateItems EditOwnedItems DeleteOwnedItems EditAllItems FolderVisible

But I think I can work with this.

Jeff
0
 
LVL 13

Expert Comment

by:imkottees
ID: 38763826
good to know :-)
0
 
LVL 40

Expert Comment

by:Subsun
ID: 38763883
AccessRights is a multivalued property so you need to put it in Curly Brace like {$_.AccessRights} to expand it. If  you open the output .csv file in Excel then it should be in a readable format..
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
New style of hardware planning for Microsoft Exchange server.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
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…
Suggested Courses

764 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