if
(
exists wmi
)
then
(
concatenation ", " of
(
(
(
substrings after "=" whose
(
it as trimmed string != ""
)
of
(
property "SerialNumber" of it as string
)
)
of select objects "* from win32_PhysicalMedia where SerialNumber != ''" of wmi
)
as trimmed string
)
)
else "n/a"
if (exists wmi) then (concatenation ", " of (((substrings after "=" whose(it as trimmed string != "") of (property "SerialNumber" of it as string)) of select objects "* from win32_PhysicalMedia where SerialNumber != ''" of wmi) as trimmed string)) else "n/a"