Author: Steve Man
Create transport rule that forwards emails
Outlook 2013 slow to connect to exchange server.
event ids 7001/17106
Configure Automatic Reply for a mailbox via Powershell
Setting Automatic Reply, or Out of Office Message, via Exchange Powershell. Below shows you how to schedule an Automatic Reply, enable it, and disable it.
Enable it (It stays on until its disabled):
Set-MailboxAutoReplyConfiguration -Identity batman -AutoReplyState Enabled -InternalMessage “Internal auto-reply message.” -ExternalMessage “External auto-reply message.”
Scheduled (must use start and end time parameters) :
Set-MailboxAutoReplyConfiguration -Identity batman -AutoReplyState Scheduled -StartTime “7/10/2012 08:00:00” -EndTime “7/15/2012 17:00:00” -InternalMessage “Internal auto-reply message” -ExternalMessage “External auto-reply message”
Disable it:
Setup wizard for Update rollup for Exchange ended prematurely because of an error.
Outlook is unable to connect to the proxy server. (Error Code 0)
Scenario: Users using Microsoft Outlook receive a pop up saying that Outlook is unable to connect to the proxy server. The exact error is:
There is a problem with the proxy server’s security certificate. The name on this security certificate is invalid or does not match the name of the target site mail.domain.com.
Outlook is unable to connect to the proxy server. (Error Code 0)
Resolution: We noticed that the Certificate Principal Name had a invalid value in the Outlook Profile. In our case it showed a ‘-‘ in the field for ‘Only connect to proxy servers that have this principal name in their certificate:’. When we ran this command-let in Exchange Shell: Get-Outlook Provider, we saw there was a ‘-‘ for the Server and CertPrincipalName property. This was causing autodiscover to hand this value out to Outlook Clients. We resolved by resetting these values to $null:
Set-OutlookProvider EXPR -server $null -CertPrincipalName $null
Cannot Remove a Move Request in Exchange
Scenario: Currently a mailbox move has been stuck ‘in progress’. The database it was moving to is now down or cannot be accessed. You cannot remove a move request for a mailbox. Running the Remove-moverequest with the -moverequestqueue and -mailboxguid parameters did not work either as suggested by other articles.
Solution: In ADSI Edit (Default Naming Context mode), locate the user account and right click for properties. Clear the two attributes associated with that user account: msExchMailboxMoveFlag & msExchMailboxMoveStatus
Get Mailbox Folder Statistics that includes Dates of the Oldest and Newest Mail Items
Perform IIS reset on multiple servers at once.
[array]$servers = get-exchangeserver | where {$_.identity -like “esg*” -and $_.AdminDisplayVersion -match “version 15.0*”}
#Also show IIS service status after the reset has completed
{
Write-Host “Restarting IIS on server $server…”
IISRESET $server
Write-Host “IIS status for server $server”
IISRESET $server /status
}
Write-Host “IIS has been restarted on all servers”
[array]$servers = “Server1″,”Server2″,”Server3″,”Server4”
#Step through each server in the array and perform an IISRESET
#Also show IIS service status after the reset has completed
foreach ($server in $servers)
{
Write-Host “Restarting IIS on server $server…”
IISRESET $server
Write-Host “IIS status for server $server”
IISRESET $server /status
}
Write-Host IIS has been restarted on all servers