Automation

 View Only
  • 1.  PowerCLI 5 Get-Datastore CapacityGB and FreeSpaceGB Reversed?

    Posted Nov 03, 2011 12:48 PM

    I was writing a script earlier for a type of datastore health check, and using tab completion I realized there were 2 new members in the Datastore object, FreeSpaceGB and CapacityGB.  However, they appear to be reversed.  My free space shows up as 1008 GB and capacity shows up as 100 GB.  Has anyone else seen this?  Most of the scripts in the community appear to use CapacityMB and FreeSpaceMB.

    I'm running PowerCLI Version 5 build 435427 and PowerShell v2



  • 2.  RE: PowerCLI 5 Get-Datastore CapacityGB and FreeSpaceGB Reversed?

    Posted Nov 03, 2011 12:53 PM

    Your observation is correct, the GB properties are indeed switched and hence incorrect.