[Update] This doc has been replaced by https://docs.microsoft.com/virtualization/hyper-v-on-windows/user-guide/refactor-wmiv1-to-wmiv2

The Hyper-V WMI v2 namespace was introduced in Windows Server 2012.  While Windows Server 2012 also continued to offer support for the WMI v1 namespace, this older namespace was documented as deprecated in Windows Server 2012.

This article serves as a repository for API information and sample code/scripts that can be used to help port any programs or scripts that use Hyper-V WMI APIs from the v1 namespace to the v2 namespace.

Full documentation of the version 2 namespace:


MSDN Samples:

Samples From Blogs: