Skip to Main Content
Microsoft Exchange 2010 PowerShell Cookbook
book

Microsoft Exchange 2010 PowerShell Cookbook

by Mike Pfeiffer
July 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
11h 54m
English
Packt Publishing
Content preview from Microsoft Exchange 2010 PowerShell Cookbook

Creating a Database Availability Group

The initial setup and configuration of a Database Availability Group (DAG) is done using a single cmdlet named New-DatabaseAvailabilityGroup . In this recipe, we'll take a look at how you can automate the creation of a DAG using the Exchange Management Shell.

How to do it...

To create a DAG, use the New-DatabaseAvailabilityGroup cmdlet :

New-DatabaseAvailabilityGroup -Name DAG `
-WitnessServer HC1 `
-WitnessDirectory C:\FSW `
-DatabaseAvailabilityGroupIPAddresses 192.168.1.55

The previous command creates a new Database Availability Group named DAG. The file share witness server is set to a hub transport server named HC1, and the path for the directory is also specified, along with an IP address that will be ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition

Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition

Jonas Andersson, Mike Pfeiffer

Publisher Resources

ISBN: 9781849682466Other