[au3]$objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
$Notebook = $objWMIService.ExecQuery("SELECT * FROM Win32_SystemEnclosure")
If IsObj($Notebook) Then
For $objItem In $Notebook
If $objItem.ChassisTypes(0) = 3 Then
;;台式机
endif
If $objItem.ChassisTypes(0) = 10 Then
;;笔记本
endif
next
endif[/au3]