1 2 Previous Next 23 Replies Latest reply on Jan 28, 2020 10:09 AM by LucD

    Guest.Disk.Capacity returns null for one of the VMs

    nettech1 Hot Shot



      Wondering if anyone would have an idea why the Guest.Disk.Capacity value for one of the VM appliances |OS: Other 2.6 Linux (64bit)| would return null?

      VM is running 3rd-party VM tools and is HW ver 10


      The VM has 2 Virtual Disks attached that are connected to a single paravirtual SCSI controller.


      $vm = Get-View -ViewType "VirtualMachine" -Filter @{'Runtime.PowerState'='poweredOn';  'name'='problemChild ' }

      $size = $vm.Guest.Disk.Capacity


      Write-Warning : Cannot bind argument to parameter 'Message' because it is null.

      At line:1 char:15

      + Write-Warning $size

      +               ~~~~~

          + CategoryInfo          : InvalidData: (:) [Write-Warning], ParameterBindingValidationException

          + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.WriteWarningCommand



        1 2 Previous Next