You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FunctionGet-DesktopPC
{
$isDesktop=$trueif(Get-WmiObject-Class win32_systemenclosure |Where-Object { $_.chassistypes-eq9-or$_.chassistypes-eq10-or$_.chassistypes-eq14})
{
Write-Warning"Computer is a laptop. Laptop dedicated GPU's that are partitioned and assigned to VM may not work with Parsec."Write-Warning"Thunderbolt 3 or 4 dock based GPU's may work"$isDesktop=$false }
if (Get-WmiObject-Class win32_battery)
{ $isDesktop=$false }
$isDesktop
}
it returns false when it detects a win32_battery in WmiObject. However, my computer incorrectly matches this condition when connected to an UPS.
The text was updated successfully, but these errors were encountered:
stephsix
changed the title
PreChecks.ps1 returns empty when my DesktopPC connected to an UPS
PreChecks.ps1 returns empty when my Computer(Desktop PC) connected to an UPS
Jul 20, 2024
In the Function Get-DesktopPC of PreChecks.ps1:
it returns false when it detects a win32_battery in WmiObject. However, my computer incorrectly matches this condition when connected to an UPS.
The text was updated successfully, but these errors were encountered: