From 7ff9df58e6e7dd14a98bf677df0bcc699af0b45d Mon Sep 17 00:00:00 2001 From: derkallevombau Date: Wed, 22 Oct 2025 20:01:39 +0200 Subject: [PATCH 1/2] Consider laptops with Intel GPU as being compatible. Also, for laptops, print Intel GPU only. Side effect of this change: Desktops without partitionable GPU will fail. --- PreChecks.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PreChecks.ps1 b/PreChecks.ps1 index 7a4d827..6f8dd99 100644 --- a/PreChecks.ps1 +++ b/PreChecks.ps1 @@ -5,7 +5,7 @@ Function Get-DesktopPC $isDesktop = $true if(Get-WmiObject -Class win32_systemenclosure | Where-Object { $_.chassistypes -eq 9 -or $_.chassistypes -eq 10 -or $_.chassistypes -eq 14}) { - Write-Warning "Computer is a laptop. Laptop dedicated GPU's that are partitioned and assigned to VM may not work with GPU based remote desktop apps." + Write-Warning "Computer is a laptop. Laptop dedicated GPU's that are partitioned and assigned to VM may not work with GPU based remote desktop apps." Write-Warning "Thunderbolt 3 or 4 dock based GPU's may work" $isDesktop = $false } if (Get-WmiObject -Class win32_battery) @@ -53,7 +53,11 @@ Function Get-VMGpuPartitionAdapterFriendlyName { } } -If ((Get-DesktopPC) -and (Get-WindowsCompatibleOS) -and (Get-HyperVEnabled)) { +$PartGpuFN = @(Get-VMGpuPartitionAdapterFriendlyName) + +if (-not (Get-DesktopPC)) { $PartGpuFN = $PartGpuFN -like 'Intel*' } + +If (($PartGpuFN.Count -gt 0) -and (Get-WindowsCompatibleOS) -and (Get-HyperVEnabled)) { "System Compatible" "Printing a list of compatible GPUs...May take a second" "Copy the name of the GPU you want to share..." From c50d11d3c8c38c3fa28959c3541fe0934dfc7947 Mon Sep 17 00:00:00 2001 From: derkallevombau Date: Wed, 22 Oct 2025 23:13:15 +0200 Subject: [PATCH 2/2] Move message according to prev commit. --- PreChecks.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PreChecks.ps1 b/PreChecks.ps1 index 6f8dd99..82b97f5 100644 --- a/PreChecks.ps1 +++ b/PreChecks.ps1 @@ -53,13 +53,13 @@ Function Get-VMGpuPartitionAdapterFriendlyName { } } +"Obtaining list of compatible GPUs...May take a second" $PartGpuFN = @(Get-VMGpuPartitionAdapterFriendlyName) if (-not (Get-DesktopPC)) { $PartGpuFN = $PartGpuFN -like 'Intel*' } If (($PartGpuFN.Count -gt 0) -and (Get-WindowsCompatibleOS) -and (Get-HyperVEnabled)) { -"System Compatible" -"Printing a list of compatible GPUs...May take a second" +"`r`nSystem Compatible" "Copy the name of the GPU you want to share..." Get-VMGpuPartitionAdapterFriendlyName Read-Host -Prompt "Press Enter to Exit"