Easy-GPU-PV icon indicating copy to clipboard operation
Easy-GPU-PV copied to clipboard

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

Open VickyFrenzy opened this issue 3 years ago • 2 comments

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

VickyFrenzy avatar Jan 14 '22 13:01 VickyFrenzy

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.

Cohors1316 avatar Jan 14 '22 19:01 Cohors1316

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

Dulanic avatar Apr 26 '22 21:04 Dulanic