Rexxer

Some tips for me and other

Exchange

Exchange 2010 + Re-index DB

Issue: Users can’t find some e-mails with searching The Internet suggest several ways to resolve the issue like: Update-MailboxDatabaseCopy –Identity ‘DB2’ –CatalogOnly or 1. stop the Exchange Search Indexer and Search service 2. go to the location of the mailbox database. 3. there should be a folder called catalog{GUID}. Delete the folder 4. Restart the […]

Exchange 2010 + Powershell + Search and delete specific mail

Task: Find and delete all the e-mail that contains specific attachment. 1. Estimate and debug our query: Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery ‘attachment:”My file example*”‘ -TargetMailbox “my.mailbox” -TargetFolder “MyFolder” -Logonly -Loglevel Full | Select DisplayName, ResultItemsCount | where-object {$_.ResultItemsCount -ne “0”} and check the folder for the report or Get-Mailbox -ResultSize Unlimited | Search-Mailbox […]

Fix All Failed Exchange Database Content Indexes

Source:https://practical365.com/exchange-server/fix-all-failed-exchange-database-content-indexes/ One of the issues that my Get-DAGHealth.ps1 script alerts for is failed content indexes on database copies in a database availability group. Note: for failed content indexes on servers that are not DAG members refer to this article instead. Failed content indexes can easily go unnoticed when everything else is working fine however they […]

Exchange + Remove messages from outbound queue

Remove-Message -Filter {Subject -eq “FYI”} -WithNDR $false Remove-Message -Filter {FromAddress -eq “j.smith@mail.com”} -WithNDR $false

Outlook + Disable MAPI/HTTP

Create the following key: HKCU\Software\Microsoft\Exchange Create a new DWORD value named MapiHttpDisabled and set the value to 1

Exchange 2010 + Default Folder Permissions

Exchange 2007 CAS Role VDir Authentication SSL Management done through Default Web Site Anonymous Yes IIS and HTTP Keep Alive should be on /Owa Basic Yes EMC/Powershell /Exchange Basic Yes EMC/Powershell /Public Basic Yes EMC/Powershell /Exchweb Basic Yes EMC/Powershell /Oab Integrated No EMC/Powershell /Autodiscover Basic and Integrated Yes Powershell /Ews Integrated Yes Powershell /UnifiedMessaging Integrated […]

Exchange + Search mail

get-mailbox -resultsize unlimited | Search-Mailbox -SearchQuery ‘attachment:”Filename”‘ -TargetMailbox UserName -TargetFolder “FolderName” -LogOnly -LogLevel Ful another lookup: Search-Mailbox -Identity “vasya.pupkin” -SearchQuery “to:domainname.com” -TargetMailbox “ivan.ivanov” -TargetFolder “Folderame” -LogLevel Full

Exchnage + Restore Deleted Items between dates

Search-Mailbox -identity ivan.ivanov -SearchDumpsterOnly -SearchQuery “Received:2016-01-01..2016-04-01” -TargetMailbox ForDeletedMail -TargetFolder RestoredDeleted Another example: Search-Mailbox Superman -SearchDumpster -SearchQuery “(Received:1/1/2012..5/18/2016) AND (To:Batman@DC.com OR From:Batman@DC.com OR CC:Batman@DC.com OR BCC:Batman@DC.com OR ‘Batman’ OR ‘Bruce’ OR ‘Wayne’)” –targetmailbox BobTheLawyer -loglevel full -targetfolder “Search_Batman” Keywords for SearchQuery: https://msdn.microsoft.com/library/ee558911%28v=office.15%29.aspx?f=255&MSPPError=-2147217396 Script (I haven’t try it): https://blogs.msdn.microsoft.com/emeamsgdev/2012/04/27/powershell-script-to-recover-all-deleted-items-in-a-mailbox/

Exchange 2010 + Changes in renewing certificates 2016

Copy-pasted from: http://brattex.blogspot.com/2012/09/renew-exchange-2010-certificate.html Renew Exchange 2010 Certificate generates a binary file – conversion to base64 tips When renewing an SSL certificate for Exchange 2010, the process is fairly straightforward and there are plenty of sites to give advice on how to do this. Two sites to consider would be Technet and Go Daddy and the steps are summarised as […]

Exchange + Delete recoverable items from a mailbox

1. Check for the statistics of recoverable items folder: Get-MailboxFolderStatistics -Identity “FirstName LastName” -FolderScope RecoverableItems | Format-List 2) This command will delete items from the Recoverable items folder. Search-Mailbox -Identity “FirstName LastName” -SearchDumpsterOnly -DeleteContent

Previous Posts