Outlook: Viewing Calendar Entries

We have seen how to view emails – this is how to view items in your calendar

function get-calendaritem {            
            
$outlook = New-Object -ComObject Outlook.Application            
            
get-mailfolders |             
where {$_.Path -like "*calendar*" -and $_.Path -notlike "*birthday*"} |            
foreach {            
  $targetfolder = $outlook.Session.GetFolderFromID($_.EntryID, $_.StoreID)            
              
  $targetfolder.Items | foreach {            
   New-Object -TypeName PSObject -Property @{            
    Folder = $targetfolder.FolderPath            
    StartTime = $_.Start            
    EndTime = $_.End            
    Organizer = $_.Organizer            
    Subject = $_.Subject            
    Location =$_.Location            
   }            
  }             
}            
}

Use the get-mailfolders function we developed earlier. Filter for the calendar folders. For each of them get the folder and strip the appropriate properties from the entry. Create an object and display

Published Tue, Aug 23 2011 19:34 by RichardSiddaway
Filed under: ,

Comments

# Outlook: removing calendar entries

We recently looked at dumping the Calendar entries msmvps.com/.../2011

Thursday, August 25, 2011 5:16 PM by Richard Siddaway's Blog

# Outlook: removing calendar entries

We recently looked at dumping the Calendar entries msmvps.com/.../2011

Thursday, August 25, 2011 5:58 PM by Richard Siddaway's Blog

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above: