Add Calendar permissions to mailboxes in Hybrid environments.

Hi again, Below script will add Reviewer permissons for DefaultCalendarShare group. This is needed for Hybrid environments and Cross-Premises calendar sharing. $allmailbox = Get-Mailbox -Resultsize Unlimited | where { $_.IsShared -eq $False -and $_.ArbitrationMailbox -eq $Null } $Logfile = "C:TempLogsadd-calendarPerm.log" Foreach ($Mailbox in $allmailbox) { $cal = (Get-MailboxFolderStatistics $Mailbox |…continue reading →

Assign Permissions to all mailboxes using Mail Enabled Security Group.

Hi, Add all users that need the following rights to a Mail Enabled Security Group. Then add permissions to calendars with this script: $allmailbox = Get-Mailbox -Resultsize Unlimited -Filter {RecipientTypeDetails -eq 'usermailbox'} Foreach ($Mailbox in $allmailbox) {     $path = $Mailbox.alias + ":" + (Get-MailboxFolderStatistics $Mailbox.alias | Where-Object { $_.Foldertype…continue reading →

Restore emails from disconnected users mailbox.

Hi all, Today I got an assignment to recover a disconnected users mailbox emails received. So here goes. Step 1: Allow permissions to user-account you are using. New-ManagementRoleAssignment –Role "Mailbox Import Export" –User whateveryouareusing Step 2: Connect-Mailbox –Identity disconnecteduser –Database mailboxdatabasename –user recovery.user Step 3: -gt in the specific date.…continue reading →