Function GetFormFactor
Const adTypeBinary = 1
Dim objColl, o, obj, sResult, f, fso
Set fso = CreateObject("Scripting.FileSystemObject")
GetFormFactor = "D"
Set objColl = GetObject("winmgmts:").ExecQuery("SELECT * FROM Win32_SystemEnclosure")
For each obj in objColl
For each o in obj.ChassisTypes
If (o = 8) or (o = 9) or (o = 10) Then : GetFormFactor = "L"
Next
Next
End Function