Recover deleted emails with powershell

And the tip of the day! How to restore deleted items from users deletions-folder before it get's Purged. First see what format are you using for date: Get-Date  And then use this one-liner (Finnish format for date included :))  for search and dump the items to a restore mailbox: Search-Mailbox…continue reading →

Exchange 2010 and error 1022

Hi all, Does this look familiar to you? No? I sure do hope you wont ever see it. But if you do there could be a different reason for it than database or logfile corruption. Today I spent a while lookin a solution for one customer dag-clustered Exchange environment. Yes.…continue reading →

Clear Exchange 2013 Log Files based on age.

Clear logs in a single Exchange 2013 Server: Set-Executionpolicy RemoteSigned $days=30 #You can change the number of days here $IISLogPath="C:inetpublogsLogFiles" $ExchangeLoggingPath="C:Program FilesMicrosoftExchange ServerV15Logging" Write-Host "Removing IIS and Exchange logs; keeping last" $days "days" Function CleanLogfiles($TargetFolder) {     if (Test-Path $TargetFolder) {         $Now = Get-Date         $LastWrite = $Now.AddDays(-$days)        …continue reading →

After Cumulative Updates in Exchange 2013 ECP and OWA will be broken … sometimes?

Mr. Exchange Server Pro Paul Cunningham wrote a guide for updating single servers and dag servers. After applying updates to Exchange 2013 environment. You will sometimes (yes not all the time) that EAC and OWA will break. Either displaying this page or a blank page. I have found that…continue reading →

Add or Remove Bulk permissions to Exchange mailboxes.

Lets see How to Change Calendar Permissions in Bulk . To Restrict Free/busy or Allow Free/busy How to Get Calendar Permissions For a Specific Mailbox ? Default Calendar permissions of a Mailbox Get-MailboxFolderPermission –Identity “EmailAddress”:calendar |fl How to Change (Allow/Restrict) Calendar Permission for a Specific Mailbox ? To Allow Free/busy…continue reading →

Increase the maximum MAPI session limit from 32 concurrent to 5000 concurrent

Outlook 2013 works differently, but Legacy clients need modifications to server side. In Exchange 2013: Create Throttling Policy and apply it to all mailboxes: [crayon-5e879f8d1c13c097295325/] Then add registry key (below is for 5000 concurrent connections): [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem]"Maximum Allowed Sessions Per User"=dword:00001388 Then restart Information Store service.continue reading →