Win10 Support

This commit is contained in:
James Stringer 2021-11-21 17:26:53 +01:00 committed by GitHub
parent bc302e7598
commit 416c87e543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ Function Get-WSLEnabled {
}
Function Get-VMGpuPartitionAdapterFriendlyName {
$Devices = (Get-VMHostPartitionableGpu).Name
$Devices = Get-WmiObject -Class "Msvm_PartitionableGpu" -ComputerName $env:COMPUTERNAME -Namespace "ROOT\virtualization\v2"
Foreach ($GPU in $Devices) {
$GPUParse = $GPU.Split('#')[1]
Get-WmiObject Win32_PNPSignedDriver | where {($_.HardwareID -eq "PCI\$GPUParse")} | select DeviceName -ExpandProperty DeviceName