if
(
mac of operating system
)
then "Physical" else
(
if
(
(
it contains "VMware" or
(
it contains "Microsoft" AND
(
(
value "product_name" of structure "system_information" of smbios
)
as string contains "Virtual Machine"
)
)
or it contains "Xen" or it contains "Parallels Software"
)
of
(
value "manufacturer" of structure "system_information" of smbios as string
)
)
then "Virtual" else "Physical"
)
if (mac of operating system) then "Physical" else (if ((it contains "VMware" or (it contains "Microsoft" AND ((value "product_name" of structure "system_information" of smbios) as string contains "Virtual Machine")) or it contains "Xen" or it contains "Parallels Software") of (value "manufacturer" of structure "system_information" of smbios as string)) then "Virtual" else "Physical")