Skip to content

Commit 90e6a46

Browse files
committed
Fixed wrong call to get windows feature
1 parent f8d47dc commit 90e6a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/functions/Test-PSDCHyperVEnabled.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
}
8989
elseif ($osDetails.Caption -like '*Windows Server*') {
9090
if ($computer.IsLocalhost) {
91-
$feature = Get-WindowsOptionalFeature -FeatureName 'Microsoft-Hyper-V-All' -Online
91+
$feature = Get-WindowsFeature -Name 'Hyper-V'
9292
}
9393
else{
9494
$command = [scriptblock]::Create("Get-WindowsFeature -Name 'Hyper-V'")

0 commit comments

Comments
 (0)