Share via


Hyper-V WMI v2 Porting Guide


[Update] This doc has been replaced by /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:

http://msdn.microsoft.com/en-us/library/hh850319(v=vs.85).aspx

MSDN Samples:

Samples From Blogs: