mirror of
https://github.com/jamesstringerparsec/Easy-GPU-PV.git
synced 2024-08-30 18:22:17 +00:00
Fix Pre-Checks
This commit is contained in:
parent
416c87e543
commit
06dc2982c3
@ -46,7 +46,7 @@ Function Get-WSLEnabled {
|
||||
}
|
||||
|
||||
Function Get-VMGpuPartitionAdapterFriendlyName {
|
||||
$Devices = Get-WmiObject -Class "Msvm_PartitionableGpu" -ComputerName $env:COMPUTERNAME -Namespace "ROOT\virtualization\v2"
|
||||
$Devices = (Get-WmiObject -Class "Msvm_PartitionableGpu" -ComputerName $env:COMPUTERNAME -Namespace "ROOT\virtualization\v2").name
|
||||
Foreach ($GPU in $Devices) {
|
||||
$GPUParse = $GPU.Split('#')[1]
|
||||
Get-WmiObject Win32_PNPSignedDriver | where {($_.HardwareID -eq "PCI\$GPUParse")} | select DeviceName -ExpandProperty DeviceName
|
||||
|
Loading…
Reference in New Issue
Block a user