How do I get Outlook Appointments from Shared calendars

Welcome Forums General PowerShell Q&A How do I get Outlook Appointments from Shared calendars

Viewing 6 reply threads
  • Author
    Posts
    • #279399
      Participant
      Topics: 1
      Replies: 3
      Points: 14
      Rank: Member

      Hi All,

      I’m trying to generate a list in which the current occupation of my colleagues is displayed for which I want to extract the data from Outlook (I can see the apointments of all colleagues in Outlook).

      I’m trying to run this code

      Yes, I used a lot of googling to come up with this, but most of it is from this:

      Topic: Parse outlook appointment in shared calendar to check attachment | PowerShell.org

       

       

      When I use my E-Mail-Adress I get the results I want, although they are unfiltered at the moment.
      But when I use the E-Mail of someone else I get the following error message:

       

       

      Thanks in advance.

       

      • This topic was modified 1 month ago by MoritzG17.
    • #279693
      Senior Moderator
      Topics: 9
      Replies: 1447
      Points: 5,419
      Helping Hand
      Rank: Community MVP

      Couldn’t make out anything from the error. Can you help converting it to English.

    • #279717
      Participant
      Topics: 1
      Replies: 3
      Points: 14
      Rank: Member

      Sure,

      Regards.

    • #279750
      Participant
      Topics: 4
      Replies: 6
      Points: 47
      Rank: Member

      Seems like permission issue with id you are using. Does that ID have permission. It looks $CalendarFolder is empty with id you are getting error. Wrap it in a try catch block or a trap block with something like Write-Host $_. Also check if $receipent is populated or not

    • #279756
      Participant
      Topics: 1
      Replies: 3
      Points: 14
      Rank: Member

      $CalendarFolder has some content but “FolderPath” and “FullFolderPath” are only filled in when I search for my own E-Mail address when I use someone elses its not filled in, except this and the “StoreID” and “EntryID” the values are the same.

      $recipient is also populated, it is the same except for “Address”, “EntryID” and “Name”

    • #279780
      Participant
      Topics: 4
      Replies: 6
      Points: 47
      Rank: Member

      I would suggest to run this with some admin account. Seems it is unable to get data. From script point if it works for one should work for other mail too. Have you tried with multiple different mail

      • #280080
        Participant
        Topics: 1
        Replies: 3
        Points: 14
        Rank: Member

        I  tried to run Powershell as admin and I got a few more errors, it seemed like it didn’t know the -ComObject stuff.
        I tried to run it by someone else and he could also only get his appointments and not mine, he also tried to run Powershell as administrator and got the same errors.

        May the problem be that we are running our own Exchange server and not Exchange Online?

    • #280275
      Participant
      Topics: 9
      Replies: 704
      Points: 2,828
      Helping Hand
      Rank: Community Hero

      If you run the script as admin then outlook needs to be run as admin. Have you tried my Export-OutlookSharedCalendar function?

      https://gist.github.com/krzydoug/f624cc7cec81fd006e1230907b74b446

Viewing 6 reply threads
  • You must be logged in to reply to this topic.