How to Configure Out Of Office (OOO) via Exchange PowerShell

How to Configure Out Of Office (OOO) via Exchange PowerShell

Sometimes an end user goes on unexpected leave and the administrator needs to turn on their Out of office for them.

This can be simply done via the exchange powershell command. In addition, you can turn off a users out of office using exchange powershell as well.

Setting Up out of office message by Exchange PowerShell

Set-MailboxAutoReplyConfiguration -identity “name@test.com”  –ExternalMessage “Thanks for your mail. I am out of office and do not have access to mails. If your matter is urgent, please send an email to support@test.com” -InternalMessage “Thanks for your mail. I am out of office and do not have access to mails. If your matter is urgent, please send an email to support@test.com

Enabling Out Of Office using Exchange PowerShell

Set-MailboxAutoReplyConfiguration “name@test.com” –AutoReplyState Enabled

Removing Out Of Office using Exchange PowerShell

Set-MailboxAutoReplyConfiguration “name@test.com” –AutoReplyState Disabled –ExternalMessage $null –InternalMessage $null

Check Out Of State for a User

You can also utilize Get-MailboxAutoReplyConfiguration -Identity “name@test.com” to check the OOO that has been setup.

Read more...

Exchange 2013 DAG – Install cumulative update (unattended)

This article gives basic steps to install cumulative update in an Exchange 2013 DAG environment
Exchange 2013
Please ensure you have a backup of your Exchange server before doing this

Download and extract the cumulative update

Open CMD prompt (make sure you run as administrator) and run these commands from the extracted directory

Setup.exe /prepareSchema /IAcceptExchangeServerLicenseTerms
Setup.exe /prepareAD /IAcceptExchangeServerLicenseTerms
Setup.exe /prepareDomain /IAcceptExchangeServerLicenseTerms

 

Put 1st DAG server into maintenance mode (use exchange powershell)

$server = $ENV:ComputerName
Set-ServerComponentState $server -Component HubTransport -State Draining -Requester Maintenance
Redirect-Message -Server $server -Target nameof2ndserver
Suspend-ClusterNode $server
Set-MailboxServer $server -DatabaseCopyActivationDisabledAndMoveNow $True
Set-MailboxServer $server -DatabaseCopyAutoActivationPolicy Blocked
Set-ServerComponentState $server -Component ServerWideOffline -State Inactive -Requester Maintenance

Close exchange powershell and open CMD prompt (as administrator user)

Setup.exe /mode:upgrade /IAcceptExchangeServerLicenseTerms

When finished, open exchange powershell and take server out of maintenance mode

$server = $ENV:ComputerName
Set-ServerComponentState $server -Component ServerWideOffline -State Active -Requester Maintenance
Resume-ClusterNode $server
Set-MailboxServer $server -DatabaseCopyActivationDisabledAndMoveNow $False
Set-MailboxServer $server -DatabaseCopyAutoActivationPolicy Unrestricted
Set-ServerComponentState $server -Component HubTransport -State Active -Requester Maintenance
Restart-Service MSExchangeTransport
Restart-Service MSExchangeFrontEndTransport

Then run the same process on the other Exchange DAG server

Read more...

Exchange 2013 Prerequisites for deployment

When deploying Exchange 2013, you can use the following powershell script to install the required roles and features on Server 2012 R2

Powershell

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS

Links for required software
http://www.microsoft.com/en-us/download/details.aspx?id=34992
http://www.microsoft.com/en-us/download/details.aspx?id=17062
http://www.microsoft.com/en-us/download/details.aspx?id=26604

Read more...