This project is read-only.
1
Vote

Get-VMSTATE error with GWMI

description

Hi,

I have a host server running with W2k8R2 SP1 with Powershell Version 3 installed. I used the Powershell Management Library for monitoring the VMs.

I have no issues in importing the module but when I run Get-VMSTATE I got the following error.

Please help.

Thanks

Get-WmiObject : Invalid object path
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\hyperv\VMConfig.ps1:267 char:13
  • Get-WmiObject -ComputerName $vm.__server -namespace $HyperVNamespace ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
    • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
Get-WmiObject : Invalid object path
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\hyperv\VMConfig.ps1:267 char:13
  • Get-WmiObject -ComputerName $vm.__server -namespace $HyperVNamespace ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
    • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
Get-WmiObject : Invalid object path
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\hyperv\VMConfig.ps1:267 char:13
  • Get-WmiObject -ComputerName $vm.__server -namespace $HyperVNamespace ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
    • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

comments