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