WMI Query to Find All Laptops and Desktops gwmi -class win32_computersystem | select PCSystemType | Format-List ValueSystem Type 0Unspecified 1Desktop 2Mobile 3Workstation 4Enterprise Server 5Small Office and Home Office (SOHO) Server 6Appliance PC 7Performance Server 8Maximum