get Outlook shared Calendars
Abu-Zahra Ahmad, (Ahmad.Abu-Zahra@partner.bmw.de)
1
Reputation point
Hi, I'm trying to get the shared calendars ( Appointment )from my exchange outlook email using powershell script, the script is below
# load the required .NET types
Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
$olFolders = "Microsoft.Office.Interop.Outlook.OlDefaultFolders" -as [type]
# access Outlook object model
$outlook = new-object -comobject outlook.application
# connect to the appropriate location
$namespace = $outlook.GetNameSpace("MAPI")
$folder = $namespace.getDefaultFolder($olFolders::olFolderCalendar)
$folder.items | Select-Object -Property Subject, Start, End, Duration, Location
and it's just displaying the the default calednars under a path for example john1234@harsh.com .com/Calendar
but the shared calendars does'n have a location ( path ), is there a way to get the data from this calendars ?