Book Image

Microsoft Hyper-V PowerShell Automation

By : Vinith Menon
Book Image

Microsoft Hyper-V PowerShell Automation

By: Vinith Menon

Overview of this book

Table of Contents (13 chapters)
Microsoft Hyper-V PowerShell Automation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Creating Reusable PowerShell Scripts Using Hyper-V PowerShell Module Cmdlets

In this chapter, we will look at how to create reusable PowerShell scripts for day-to-day Hyper-V management activities using cmdlets. We will be utilizing the core cmdlets that we learned in the previous two chapters to create these reusable scripts. We have subdivided this chapter into four sections, which will cover the core automation strategies that can be used to manage repetitive administrative tasks:

  • Creating reusable scripts for virtual machine creation utilizing offloaded data transfers (ODX)

  • Creating reusable scripts for virtual machine live migration

  • Creating reusable scripts to manage a virtual machine's snapshots, export, and import

  • Creating reusable scripts to automate installation of Integration Service in virtual machines