简体   繁体   中英

Cannot retrieve the “Received Date” from an Outlook Meeting by using Powershell

I have been trying (unsuccesfully) to obtain the "Received Date" for the meetings in my Calendar by using this script .

At first, I thought I could use the CreationTime property from IPM.Appointment object. Unfortunately, it seems that the property "CreationTime" gets updated when the meeting is modified (eg when the meeting is accepted), which makes me think that it's not the right property to use.

Is there any way to retrieve the actual date when the meeting was sent (or received)?

--------- EDIT (Code as this moment, removing comments) ---------

Function Get-OutlookCalendar {
 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::olFolderCalendar)
 $folder.items |
 Select-Object -Property Subject, Start, Duration, Location, CreationTime
}

You can check with OutlookSpy (click IMessage button) if any properties (such as PR_MESSAGE_DELIVERY_TIME ) will have the original value, but I don't think you will find anything: Outlook recreates the appointment from the scratch when a meeting update is received; this is by design.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM