Horje
get current snapshot size Code Example
get current snapshot size
$Report = Get-VM | Get-Snapshot | Select VM,Name,Description,@{Label="Size";Expression={"{0:N2} GB" -f ($_.SizeGB)}},Created
If (-not $Report)
{  $Report = New-Object PSObject -Property @{
      VM = "No snapshots found on any VM's controlled by $VIServer"
      Name = ""
      Description = ""
      Size = ""
      Created = ""
   }
}
$Report = $Report | Select VM,Name,Description,Size,Created | ConvertTo-Html -Head $Header -PreContent "<p><h2>Snapshot Report - $VIServer</h2></p><br>" | Set-AlternatingRows -CSSEvenClass even -CSSOddClass odd




Whatever

Related
create a doxygen config file Code Example create a doxygen config file Code Example
pacman one or more PGP signatures could not be verifies Code Example pacman one or more PGP signatures could not be verifies Code Example
blender libLLVM-6.0.so.1 Code Example blender libLLVM-6.0.so.1 Code Example
modify all int elements of an array Code Example modify all int elements of an array Code Example
44000 * 12 + 25% Code Example 44000 * 12 + 25% Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9