Preparing the Office 365 calendar for use
Before pairing your Room Booking System with an Office 365 calendar, you will need to make sure that your calendar supports the Room Booking System's functionality and make sure you have the correct admin rights to manage your calendar.
Edit the properties of your new room resources
Once your room resource has been created, you will need to edit some of the resource’s properties for your Room Booking System to display your meetings correctly.
Enter the following command:
$UserCredential = Get-Credential
A dialogue box should appear asking for your credentials. Enter your Office 365 login information.
After that, run the following command:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Enter:
Import-PSSession $Session
Should an error message appear (written in the red text as shown in the image below), run the following command:
Set-ExecutionPolicy RemoteSigned
When prompted for input, type y, and press enter. Then run:
Import-PSSession $Session
Enter the last command: ("Or jump to this step if you do not get an error message as shown in the previous picture.")
Get-MailBox –Identity <roomresource@email> | Set-CalendarProcessing -AddOrganizerToSubject $false -DeleteSubject $false -DeleteComments $false
This will allow your Room Booking System to correctly retrieve a meeting’s title and description for every room resource, displaying the correct name for all events scheduled on the room calendar.
Additionally:
To hide the private meetings, please execute the following command:
Get-MailBox –Identity <roomresource@email> | Set-CalendarProcessing -AddOrganizerToSubject $false -DeleteSubject $false -DeleteComments $false -RemovePrivateProperty $false
Please note that only newly created meetings will reflect the changes.
After preparing the Office 365 calendar for your Room Booking System, log in to the Room Booking System Web Portal to pair your Room Booking System with your calendar.
At the "Calendar" step, select Office 365. Choose between signing in with Global Admin rights or as a delegated user.
If you want to use multi-factor authentication (MFA) to connect to Exchange Online PowerShell, you can use the instructions at Connect to Exchange Online PowerShell to use remote PowerShell to connect to Exchange Online. MFA requires you to install the Exchange Online Remote PowerShell Module, and use the Connect-EXOPSSession cmdlet to connect.
To find out more on how to connect to the Online PowerShell with MFA please follow this link here.