Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basroovers/5b2a0167cb9d1ace21707facfe306234 to your computer and use it in GitHub Desktop.
Save basroovers/5b2a0167cb9d1ace21707facfe306234 to your computer and use it in GitHub Desktop.
# The following script enables the calendar processing feature for a shared mailbox
$UserCredential = Get-Credential
$Identity = Read-Host -Prompt "Please enter the identity for which you want to enable calendar processing"
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
get-mailbox $Identity | set-mailbox -type room
Set-CalendarProcessing -Identity $Identity -AutomateProcessing AutoAccept -AllBookInPolicy $true Optional -AllowConflicts $true
get-mailbox $Identity | set-mailbox -type shared
Remove-PSSession $Session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment