Created
November 17, 2016 12:54
-
-
Save basroovers/5b2a0167cb9d1ace21707facfe306234 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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