@Wayne-Workman said:
You can script this. Just write a batch file to detect if there is a “Wireless Network Connection 1” or not… There are other ways too, like detecting if there is a battery percentage or not, if there is a lid-close setting available or not. Once you have these checks in a script and working, you can just push your snapin to all systems.
@FlowLive Hi, you can use DMI information to get chassis type.
On a linux (in my case it’s a VM on an ESXi) :
# dmidecode --string chassis-type
Other
On a windows laptop using a script(in my case a HP Elitebook 820) :
Dim Wmi :Set Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Dim Arg, Col, Obj
For Each Col In Wmi.ExecQuery("Select * from Win32_SystemEnclosure")
For Each Obj In Col.ChassisTypes
Select Case Obj
Case 1 :Arg = "Other"
Case 2 :Arg = "Unknown"
Case 3 :Arg = "Desktop"
Case 4 :Arg = "Low Profile Desktop"
Case 5 :Arg = "Pizza Box"
Case 6 :Arg = "Mini Tower"
Case 7 :Arg = "Tower"
Case 8 :Arg = "Portable"
Case 9 :Arg = "Laptop"
Case 10 :Arg = "Notebook"
Case 11 :Arg = "Handheld"
Case 12 :Arg = "Docking Station"
Case 13 :Arg = "All-in-One"
Case 14 :Arg = "Sub-Notebook"
Case 15 :Arg = "Space Saving"
Case 16 :Arg = "Lunch Box"
Case 17 :Arg = "Main System Chassis"
Case 18 :Arg = "Expansion Chassis"
Case 19 :Arg = "Sub-Chassis"
Case 20 :Arg = "Bus Expansion Chassis"
Case 21 :Arg = "Peripheral Chassis"
Case 22 :Arg = "Storage Chassis"
Case 23 :Arg = "Rack Mount Chassis"
Case 24 :Arg = "Sealed-Case PC"
Case Else
Arg = "Unknown"
End Select
Next
Next
WScript.Echo " Type = " & Arg
or via wmic :
c:\wmic systemenclosure get chassistypes
ChassisTypes
{10}