Error 'Get-WmiObject: Invalid class' Msvm_ImageManagementService ''

I recently got this error, and I have no idea what caused it. The documentation I found regarding this class is minimal, and I'm not sure what I need to check or where to look in order to figure it out and fix it.

System:

  • Preview Datacenter Windows Server 2012 R2 Build 9431
  • PowerShell version 4.0 32bit and 64bit

Output:

PS > Get-WmiObject -Class "Msvm_ImageManagementService" -Namespace "root\virtualization" Get-WmiObject : Invalid class "Msvm_ImageManagementService" At line:1 char:1 + Get-WmiObject -Class "Msvm_ImageManagementService" -Namespace "root\virtualizati ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidType: (:) [Get-WmiObject], ManagementException + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand 
+6
source share
1 answer

The class still exists; it is now in a different namespace. This is in the namespace "root \ virtualization \ v2". It is also worth noting that the class has changed; previously used methods can no longer exist.

+8
source

Source: https://habr.com/ru/post/954639/


All Articles