alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
735 stars 325 forks source link

48 Find VM Disk Format.ps1 #440

Closed meoso closed 8 years ago

meoso commented 8 years ago
Get-HardDisk : Parameter set cannot be resolved using the specified named parameters.
At P:\vmware-pcli\vCheck-vSphere-master\Plugins\60 VM\48 Find VM Disk Format.ps1:8 char:23
+ $vmdiskformat = $VM | Get-HardDisk | where {($_.storageformat -match $diskformat ...
+                       ~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (VMware.Vim.VirtualMachine:PSObject) [Get-HardDisk], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetHardDisk

vCheck v6.23-alpha-3

$PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1
Get-VIToolkitVersion

PowerCLI Version
----------------
   VMware vSphere PowerCLI 5.8 Release 1 build 2057893
---------------
Snapin Versions
---------------
   VMWare AutoDeploy PowerCLI Component 5.5 build 1983942
   VMWare ImageBuilder PowerCLI Component 5.5 build 1983942
   VMware License PowerCLI Component 5.5 build 1265954
   VMware Storage PowerCLI Component 5.8 build 2057894
   VMware VDS PowerCLI Component 5.8 build 2031581
   VMware vSphere PowerCLI Component 5.8 build 2031581
meoso commented 8 years ago

it works if i create a job XML and run it by itself, but fails with a big batch of plugins.

Sneddo commented 8 years ago

This is related to your connection issues (Issue #217 )