Powershell:

$olFolderInbox = 6
$ol = new-object -comobject "Outlook.Application"
$mapi = $ol.getnamespace("mapi")
$inbox = $mapi.GetDefaultFolder($olFolderInbox)
$FolderName = $inbox.Folders.Item("FolderNameHere")
$FolderName.items | Select-Object SenderName, SenderEmailAddress -unique | 
export-Csv c:\emails.csv -noTypeInformation
 
I also saw some VBA somewhere floating around that does the same thing

Cheers
Ken


________________________________________
From: Ben Scott [[email protected]]
Sent: Thursday, 2 April 2009 1:37 AM
To: NT System Admin Issues
Subject: Re: [OT] Outlook email address question

On Wed, Apr 1, 2009 at 4:53 AM, Oliver Marshall
<[email protected]> wrote:
> Anyone know how I can get a list of email addresses (just the email
> addresses) of all the emails in a given folder in Outlook?

  I think you can do this by using File -> Import and export.  Export
to a CSV file.  Map the fields you want.  De-dupe it using Excel,
Access, etc.

-- Ben
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to