Open VickyFrenzy opened 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.
Thank you for posting this! I was wondering why it wasnt doing anything myself.
My desktop PC has a battery since it's plugged in to the UPS with USB.
Because of this
Get-DesktopPC
returnsFalse
despite my system being technically compatible.Removing the condition block here will fix the issue: https://github.com/jamesstringerparsec/Easy-GPU-PV/blob/396f876e8c36610df6575f1a8f1f9e34415684a6/PreChecks.ps1#L11-L12