diff --git a/Enable-HyperVFeatures.ps1 b/Enable-HyperVFeatures.ps1 index 1b21f60..439fdb5 100644 --- a/Enable-HyperVFeatures.ps1 +++ b/Enable-HyperVFeatures.ps1 @@ -1,3 +1,6 @@ +# Exit if the endpoint is a server edition +Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -Property ProductType | ForEach-Object { If ( $_.ProductType -gt 1 ) { Return } } + # Exit if the endpoint is not running at least Windows 10 If ( IsWindowsVersion -lt "10.0" ) { Return }