Created
October 13, 2016 19:56
-
-
Save tomtorggler/61cc935c04425ef81e7bb8870e775d1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-VmNestedHVStatus { | |
param($VM) | |
foreach ($item in $VM) { | |
try { | |
Get-VM $item -ErrorAction Stop | Select-Object -ExpandProperty extensiondata | Select-Object -ExpandProperty config | Select-Object Name,NestedHVEnabled | |
} catch { | |
Write-Warning -Message $_ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment