Skip to main content

Get calendar entries via PowerShell

Custom Exchange calendar entries

$UPN = "<upnofmailboxuser>"
$Calendarname = "<calendarname>"
$folder = $ns.Folders.Item("$UPN").Folders.Item('Kalender').Folders.Item($Calendarname)
$AllItems = $folder.items |  Select-Object -Property Subject, Start, Duration

Default Exchange calendar entries

$UPN = "<upnofmailboxuser>"
$Calendarname = "<calendarname>"
$folder = $ns.Folders.Item("$UPN").Folders.Item('Kalender')
$AllItems = $folder.items |  Select-Object -Property Subject, Start, Duration