Submitted By: Kent Finkle
Creates a new appointment (Scripting Guys Planning Session) in Microsoft Outlook.
$comments = @' Script name: Create-Appointment.ps1 Created on: Saturday, July 21, 2007 Author: Kent Finkle Purpose: How can I use Windows Powershell to Create a Microsoft Outlook Appointment? '@ $olAppointmentItem = 1 $o = new-object -comobject outlook.application $a = $o.CreateItem($olAppointmentItem) $a.Start = "4/11/2008 11:00 AM" $a.Duration = 60 $a.Subject = "Scripting Guys Planning Session" $a.Body = "Meet with Scripting Guys to discuss upcoming plans." $a.Location = "44/2039" $a.ReminderMinutesBeforeStart = 15 $a.ReminderSet = $True $result = $a.Save()
$comments = @' Script name: Create-Appointment.ps1 Created on: Saturday, July 21, 2007 Author: Kent Finkle Purpose: How can I use Windows Powershell to Create a Microsoft Outlook Appointment? '@ $olAppointmentItem = 1 $o = new-object -comobject outlook.application $a = $o.CreateItem($olAppointmentItem) $a.Start = "4/11/2008 11:00 AM" $a.Duration = 60 $a.Subject = "Scripting Guys Planning Session" $a.Body = "Meet with Scripting Guys to discuss upcoming plans." $a.Location = "44/2039" $a.ReminderMinutesBeforeStart = 15 $a.ReminderSet = $True $result = $a.Save()