O'Reilly logo

Windows Server® 2008 Hyper-V™ Resource Kit by Janique Carbone Robert Larson and Microsoft Windows Virtualization Team

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter demonstrated how to interface with the Hyper-V WMI API using Windows PowerShell. The chapter explained how to obtain access to the Hyper-V WMI classes using Windows PowerShell, how to query the local and remote Hyper-V server for virtual machines, how to utilize multiple classes to gather information, and how to manage virtual machine settings using the native WMI classes. Although knowing how to write Windows PowerShell scripts from scratch is important, reusing scripts and functions that already exist can save you time. To demonstrate how powerful a library of functions can be, we introduced a Windows PowerShell library that was developed internally by Microsoft and is available at http://www.codeplex.com. Using the library ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required