?
Solved

Export Exchange emails to CSV and Download attachment in powershell

Posted on 2014-01-27
3
Medium Priority
?
420 Views
Last Modified: 2014-10-25
Hi,

Does anyone know how to
1. Export emails to csv via Powershell directly from exchange
2. Export the attachments to a folder via Powershell directly from exchange

I can do it on powershell through outlook but not directly via exchange. I could save a lot of money on licenses!

Here is the function I used to list emails via outlook

Function Get-Outlookinbox
{
 Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
 $olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type] 
 $outlook = new-object -comobject outlook.application
 $namespace = $outlook.GetNameSpace("MAPI")
 $folder = $namespace.getDefaultFolder($olFolders::olFolderInBox)
 $folder.items | 
 Select-Object -Property Subject, ReceivedTime, Importance, SenderName
 }
Get-OutlookInBox

Open in new window


Thanks!
0
Comment
Question by:Evolution-Recruitment
[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 Comments
 
LVL 70

Accepted Solution

by:
Qlemo earned 2000 total points
ID: 39812734
AFAIK you can't. You can move or copy mails between mailboxes and mailbox folders, or to PST files, but nothing else.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this video we show how to create a mailbox database 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 >> Data…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
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