?
Solved

How to export Public Folders into a CSV file by using Powershell

Posted on 2008-06-16
8
Medium Priority
?
6,511 Views
Last Modified: 2008-08-26
Hello Guys,

I am totally new with PowerShell and I will need to understand which commands I can use to import and export to a CSV file into Exchange 2007 environment.
I used to do the same with Exchange 2003 only by clicking with the right-button on the Public Folders and then "Export List". Does any one have an idea how I would be able to proceed? Maybe if you guys could give me just an idea I will be able to do it.
Thanks, LaranjaCarioca
0
Comment
Question by:LaranjaCarioca
[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
  • 5
  • 3
8 Comments
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21795823
Get-PublicFoler | export-csv <your file> -NoType
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21795827
sorry

get-publicfolder not Get-publicfoler
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21795929
btw... if you want all you need to add the -recurse

Get-PublicFolder -Recurse | Export-Csv <CSV File> -noType
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:LaranjaCarioca
ID: 21796026
Sorry BSonPosh....what is -Recurse ?   if I want ALL, I did not get what you mean.
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21796135
-recurse means to process the entire tree (almost like a directory tree.)

If you do not use -recurse then it will only get one level of public folders
0
 

Author Comment

by:LaranjaCarioca
ID: 21796240
BSonPosh,

Really thanks for your help...do you think the following command would work?

Get-PublicFolder -Database server\storage group\public folder database -recurse | Export-Csv c:\PFcsvFile.csv
0
 
LVL 18

Accepted Solution

by:
BSonPosh earned 750 total points
ID: 21796314
If your wanting a specific Public folder you need to use the -id parameter.

How many public folders do you have?

I would step through the command (it doesnt change anything.)

PS> Get-PublicFolders
What did you get?

PS> Get-PublicFolders -recurse
Did you get more folders? Did you get the ones you wanted? To many?

Use "Get-Help Get-PublicFolders -full" for detailed help

0
 

Author Comment

by:LaranjaCarioca
ID: 21796540
Hello BSonPosh,

As a matter of fact it is just an example. Soon I will need to work with this and I just wanted to make sure how to get the public folders on a specific public folder and then save it into a CSV file.
Probably it will be lots of folders and subfolders.
I read the -full help for this command and I think it would work. As soon I get back something from the production mode, I will let you know...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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
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

770 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