Tip: Get a Free Set of PowerShell Commands for Managing Hyper-V R2
Follow Our Daily Tips
Using a pre-existing library of Windows PowerShell functions that you can use directly from the shell can make management much simpler. Fortunately, some Microsoft employees have worked together to develop a sample Windows PowerShell Hyper-V Management Library. You can download the PowerShell Management Library for Hyper-V R2 from Microsoft’s open source project site.
The library, which currently includes 80 functions, allows you to manage a variety of components, including:
- Virtual machine configuration and state
- Virtual hard disks
- Virtual floppy disks
- Virtual CD/DVD images
- Virtual network adapters
- Virtual network switches
In addition, the library has a series of helper functions that help optimize code reuse and maintain a consistent interaction with the functions.
From the Microsoft Press book Windows Server 2008 Hyper-V Resource Kit by Robert Larson and Janique Carbone with the Windows Virtualization Team at Microsoft.
Looking for More Tips?
For more tips on using Microsoft products and technologies, visit the TechNet Magazine Tips library.