Using the Hyper-V WMI Provider
The following topic describes considerations in backing up and restoring virtual machines in Hyper-V:
The following topics contain sample code that demonstrates the use of the WMI classes for this provider:
- Exporting a Snapshot of a Virtual Machine
- Exporting the Configuration of a Virtual Machine
- Getting the Virtual System DNS Name
- Importing Virtual Machines
- Querying Networking Objects
The following reference topics contain sample code that demonstrate how to call the method:
- Msvm_ComputerSystem class
- Msvm_ImageManagementService class
- Msvm_Keyboard class
- Msvm_SyntheticMouse class
- Msvm_VirtualSwitchManagementService class
- Msvm_VirtualSystemManagementService class
- AddKvpItems
- AddVirtualSystemResources
- ApplyVirtualSystemSnapshot
- CreateVirtualSystemSnapshot
- DefineVirtualSystem
- DestroyVirtualSystem
- ExportVirtualSystem
- ExportVirtualSystemEx
- GetSummaryInformation
- GetVirtualSystemImportSettingData
- GetVirtualSystemThumbnailImage
- ImportVirtualSystem
- ImportVirtualSystemEx
- ModifyKvpItems
- ModifyVirtualSystem
- ModifyVirtualSystemResources
- RemoveKvpItems
- RemoveVirtualSystemResources
- RemoveVirtualSystemSnapshot
- RemoveVirtualSystemSnapshotTree
The C# samples reference some utilities; see Common Utilities for the Virtualization Samples.