Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


Create Exchange Database Availability Group

DAG Witness server is an ordinary server (not a member of dag or hosting any roles other than file share for dag) It can be a witness for multiple DAGs ADD DOMAIN\Exchange Trusted Subsystem group a member of .\Administrators group The VBS script to achieve this is here (net localgroup is useless in this case)

Note: You might need to disable the witness firewall netsh advfirewall set allprofiles state off

new-databaseavailabilitygroup -name dag01 -WitnessServer  msp-dag01.contoso.local
Add-DatabaseAvailabilityGroupServer -Identity dag01 -MailboxServer msp-exc01
Add-DatabaseAvailabilityGroupServer -Identity dag01 -MailboxServer msp-exc02
add-MailboxDatabaseCopy -Identity db01 -MailboxServer msp-exc02
add-MailboxDatabaseCopy -Identity db02 -MailboxServer msp-exc01
windows/servers/exchange/dag.txt · Last modified: 2017/08/10 11:00 (external edit)