The following topics describe how to use the Hyper-V WMI provider.
In this section
| Topic | Description |
|---|---|
| Exporting a snapshot of a virtual machine | The following C# and Visual Basic Scripting Edition (VBScript) samples demonstrate exporting a snapshot of a virtual machine. |
| Exporting the configuration of a virtual machine | The following C# and Visual Basic Scripting Edition (VBScript) samples demonstrate exporting the configuration of a virtual machine. |
| Getting the virtual system DNS name | The following C# and Visual Basic Scripting Edition (VBScript) samples retrieve the DNS name of the virtual machine. |
| Migrating virtual machines | The following C# sample demonstrates how to use the MigrateVirtualSystemToHost method to perform a simple migration of a virtual machine. |
| Querying networking objects | The following C# sample retrieves and displays physical and virtual network information for the specified switch. |
| Common utilities for the virtualization samples (V2) | The following utilities are used by some of the C# virtualization samples. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
