jamesstringerparsec / Easy-GPU-PV

A Project dedicated to making GPU Partitioning on Windows easier!
4.39k stars 440 forks source link

The PreChecks.ps1 script won't print anything if you have an UPS #80

Open VickyFrenzy opened 2 years ago

VickyFrenzy commented 2 years ago

My desktop PC has a battery since it's plugged in to the UPS with USB.

Because of this Get-DesktopPC returns False despite my system being technically compatible.

image

Removing the condition block here will fix the issue: https://github.com/jamesstringerparsec/Easy-GPU-PV/blob/396f876e8c36610df6575f1a8f1f9e34415684a6/PreChecks.ps1#L11-L12

Cohors1316 commented 2 years ago

Replace it with

$PC = Get-ComputerInfo
If ($PC.CsPCSystemType -Eq 'Mobile' -Or $PC.PowerPlatformRole -Eq 'Mobile') {$IsDesktop = $False}

But yeah, Win32_Battery will catch UPS.

Dulanic commented 2 years ago

Thank you for posting this! I was wondering why it wasnt doing anything myself.