Query on Room mailboxes

Glenn Maxwell 12,871 Reputation points
2023-03-01T21:36:46.3266667+00:00

Hi All

i using exchange 2016 hybrid environment. i have room mailboxes created in onprem as remote mailboxes. i want to know in last one month how many bookings have been made and who has booked the room and who are the attendees. is this possible to fetch this information.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange | Exchange Server | Development
Exchange | Exchange Server | Management
Exchange | Hybrid management
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-03-02T08:30:36.74+00:00

    You can use either the Graph API or EWS to generate such report. Here's example on how to do it via Graph: https://practical365.com/report-room-mailbox-statistics/

    And this one for EWS: https://letsexchange.blogspot.com/2017/05/exchange-meeting-room-statistics.html?m=0

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Glenn Maxwell 12,871 Reputation points
    2023-03-03T15:08:57.12+00:00

    I have connected to exchange online and use the below script, i am getting below error please guide me

    https://github.com/NunoFilipeMota/PublicScripts/blob/main/GetMeetingRoomStats_GraphAPI.ps1

    PS C:\temp> .\GetMeetingRoomStats_GraphAPI.ps1 -RoomListSMTP "******@contoso.com" -From "02/01/2023" -To "03/01/2023" 
    
    
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:208 char:17
    +             Sign up
    +                 ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:213 char:209
    + ... k Button--medium Button d-lg-none color-fg-inherit p-1">    <span cla ...
    +                                                                 ~
    The '<' operator is reserved for future use.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:431 char:13
    +       CI/CD &amp; Automation
    +             ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:96
    + ... ="" data-disable-with="" data-dropdown-tracking="{&quot;type&quot;:&q ...
    +                                                                 ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:103
    + ... a-disable-with="" data-dropdown-tracking="{&quot;type&quot;:&quot;blo ...
    +                                                                 ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:146
    + ... &quot;type&quot;:&quot;blob_edit_dropdown.more_options_click&quot;,&q ...
    +                                                                 ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:153
    + ... type&quot;:&quot;blob_edit_dropdown.more_options_click&quot;,&quot;co ...
    +                                                                  ~
    Missing expression after unary operator ','.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:153
    + ... ype&quot;:&quot;blob_edit_dropdown.more_options_click&quot;,&quot;con ...
    +                                                                 ~
    Unexpected token '&' in expression or statement.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:166
    + ... ot;blob_edit_dropdown.more_options_click&quot;,&quot;context&quot;:{& ...
    +                                                                 ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    At C:\temp\GetMeetingRoomStats_GraphAPI.ps1:1355 char:193
    + ... options_click&quot;,&quot;context&quot;:{&quot;repository_id&quot;:34 ...
    +                                                                 ~
    The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    Not all parse errors were reported.  Correct the reported errors and try again.
        + CategoryInfo          : ParserError: (:) [], ParseException
        + FullyQualifiedErrorId : AmpersandNotAllowed
     
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.