Skip to content

Commit

Permalink
Merge pull request #304 from rvdnieuwendijk/patch-5
Browse files Browse the repository at this point in the history
Update 58 Virtual machines with less hard disks than partitions.ps1
  • Loading branch information
Sneddo committed Jan 1, 2015
2 parents 420fbe1 + 4eda81e commit 086e26c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Start of Settings
# End of Settings

$Result = @($FullVM | `
Select-Object -Property Name,@{N="NrOfHardDisks";E={($_.Layout.Disk|measure).count}},@{N="NrOfGuestDisks";E={($_.Guest.Disk|measure).count}},@{N="GuestFamily";E={$_.Guest.GuestFamily}}| `
$Result = @($FullVM |
Where-Object {$_.Config.ManagedBy.ExtensionKey -ne 'com.vmware.vcDr'} |
Select-Object -Property Name,@{N="NrOfHardDisks";E={($_.Layout.Disk|measure).count}},@{N="NrOfGuestDisks";E={($_.Guest.Disk|measure).count}},@{N="GuestFamily";E={$_.Guest.GuestFamily}} |
Where-Object {$_.GuestFamily -eq "windowsGuest" -and $_.NrOfHardDisks -lt $_.NrOfGuestDisks}
)
$Result
Expand All @@ -12,5 +13,5 @@ $Header = "Virtual machines with less hard disks than partitions : $(@($Result).
$Comments = "Virtual machines with less hard disks than partitions. Probably they have more than one partition on a hard disk."
$Display = "Table"
$Author = "Robert van den Nieuwendijk"
$PluginVersion = 1.1
$PluginVersion = 1.2
$PluginCategory = "vSphere"

0 comments on commit 086e26c

Please sign in to comment.