I have been searching online and have yet to determine how to do this. I have a customer that asked for some assistance with automating creating, finding, and deleting calendar appointments in Outlook (not O365). This is easy enough with the Outlook Object and OLAppointmentItem like so:
$sDate = "05/10/2019" $ol = New-Object -ComObject Outlook.Application $meeting = $ol.CreateItem('olAppointmentItem') $meeting.Subject = "My Test" $meeting.Body = "Let's have a meeting" $meeting.Location = "My desk" $meeting.ReminderSet = $true $meeting.Importance = 1 $meeting.MeetingStatus = [Microsoft.Office.Interop.Outlook.OlMeetingStatus]::olMeeting $meeting.Recipients.Add("email@example.com") $meeting.Recipients.Add("firstname.lastname@example.org") $meeting.ReminderMinutesBeforeStart = 15 $meeting.Start = "$($sDate) 11:00" $meeting.End = "$($sDate) 12:00" $meeting.Duration = 30 $meeting.Send()
The customer, however, came back and is asking for a way to modify the subject line of existing appointments. I confess I have never had to do this; usually if you create an appointment it is done. I have been looking through the object model, and I can obtain the AppointmentItem object in question, but see no way to modify it. Just curious if anyone has ever done this.