[prolog] I have a Exchange 2013 server running. Within a public folder (called: "events") there are a few subfolders. These folders are called "winter 2015", "summer 2015" and so on. After an event, the participants can send a eMail to take part in a contest.
[question] I need to export all sender-addresses to an CSV-file, to send a invertation for the next event. I want to use the exchange management shell (or Powershell shell) to do this. I stuck with finding the right command.
...so far - when I use:
Get-PublicFolderItemStatistics “\events\winter 2015” | fl
I get this for every eMail:
RunspaceId : 4171018f-57d4-4ba6-90ca-7002097d3e98
Subject : bike contest winter 2015
PublicFolderName : \events\winter 2015
LastModificationTime : 31.07.2015 07:14:52
CreationTime : 31.07.2015 07:14:52
HasAttachments : False
ItemType : IPM.Note
MessageSize : 11.51 KB (11,790 bytes)
Identity : corp.domain.com/DE/PF-A100\RgAAAAC33A2/VFsDS7P7bMLtt06fBwDaAlX8hPjaQq/VvypRTeGhAAAAu8plAADaAlX8hPjaQq/VvypRTeGhAAAq8bWeAAAJ
MailboxOwnerId : corp.domain.com/DE/PF-A100
IsValid : True
ObjectState : New
Do I have to use the Identity to access the details of each eMail? Or is there a better way? What is the right command? Would it be possible to create a PS-Script with paramters to automitic run it two times a year?