Book Image

PowerCLI Cookbook

By : Philip Brandon Sellers
Book Image

PowerCLI Cookbook

By: Philip Brandon Sellers

Overview of this book

Table of Contents (19 chapters)
PowerCLI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Managing DRS and Affinity Groups using PowerCLI

In this chapter, you will cover the following topics:

  • Applying recommendations for partially automated DRS clusters

  • Setting a cluster into maintenance mode with PowerCLI

  • Using native DRS rule cmdlets to manage KeepTogether and Separate rules

  • Learning the MoRef way of identifying objects

  • Creating a DRS group for virtual machines

  • Listing the members of a DRS group

  • Updating the members of a VM DRS group

  • Creating a custom function to update members of a DRS group

  • Creating rules to maintain memberships of DRS groups using a custom function

  • Using Compare-Object to audit group memberships for differences