if
(
(
exists setting "BigFix_Custom_Serial" of client
)
and
(
exists value of setting "BigFix_Custom_Serial" of client
)
)
then value of setting "BigFix_Custom_Serial" of client else
(
if
(
name of operating system as lowercase starts with "mac"
)
then
(
string "IOPlatformSerialNumber" of dictionary of service plane of iokit registry
)
else
(
if
(
name of operating system as lowercase starts with "win"
)
then
(
if
(
exists folder
(
(
if
(
version of client >= "9" as version
)
then
(
pathname of parent folder of data folder of client
)
else
(
pathname of parent folder of regapp "besclient.exe"
)
)
& "\LMT\CIT\tlm_hw_scans"
)
)
then
(
unique values of
(
it as text
)
of
(
xpaths "Hardware/ComponentID/SerialNumber" of xml documents of files whose
(
name of it as lowercase contains "tlm_hw_"
)
of folders
(
(
if
(
version of client >= "9" as version
)
then
(
pathname of parent folder of data folder of client
)
else
(
pathname of parent folder of regapp "besclient.exe"
)
)
& "\LMT\CIT\tlm_hw_scans\"
)
)
)
else "Missing Hardware Scan"
)
else
(
if
(
exists folder
(
(
(
if
(
version of client >= "9" as version
)
then
(
pathname of parent folder of data folder of client
)
else
(
pathname of parent folder of parent folder of client folder of site "actionsite"
)
)
)
& "/LMT/CIT/tlm_hw_scans"
)
)
then
(
if exists property "xml document" then
(
unique values of
(
it as text
)
of
(
xpaths "Hardware/ComponentID/SerialNumber|Hardware/ComponentID/HWSerial" of xml documents of files whose
(
name of it as lowercase contains "tlm_hw_"
)
of folders
(
(
(
if
(
version of client >= "9" as version
)
then
(
pathname of parent folder of data folder of client
)
else
(
pathname of parent folder of parent folder of client folder of site "actionsite"
)
)
)
& "/LMT/CIT/tlm_hw_scans/"
)
)
)
else
(
unique values of
(
following texts of lasts ">" of preceding texts of lasts "<" of lines containing "Serial" whose
(
line number of it < 15
)
of files whose
(
name of it as lowercase contains "tlm_hw_"
)
of folders
(
(
(
if
(
version of client >= "9" as version
)
then
(
pathname of parent folder of data folder of client
)
else
(
pathname of parent folder of parent folder of client folder of site "actionsite"
)
)
)
& "/LMT/CIT/tlm_hw_scans/"
)
)
)
)
else "Missing Hardware Scan"
)
)
)
if ((exists setting "BigFix_Custom_Serial" of client) and (exists value of setting "BigFix_Custom_Serial" of client)) then value of setting "BigFix_Custom_Serial" of client else ( if (name of operating system as lowercase starts with "mac") then (string "IOPlatformSerialNumber" of dictionary of service plane of iokit registry) else ( if (name of operating system as lowercase starts with "win") then (if (exists folder ((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of regapp "besclient.exe")) & "\LMT\CIT\tlm_hw_scans")) then (unique values of (it as text) of (xpaths "Hardware/ComponentID/SerialNumber" of xml documents of files whose (name of it as lowercase contains "tlm_hw_") of folders ((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of regapp "besclient.exe")) & "\LMT\CIT\tlm_hw_scans\"))) else "Missing Hardware Scan") else (if (exists folder (((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of parent folder of client folder of site "actionsite"))) & "/LMT/CIT/tlm_hw_scans")) then (if exists property "xml document" then (unique values of (it as text) of (xpaths "Hardware/ComponentID/SerialNumber|Hardware/ComponentID/HWSerial" of xml documents of files whose (name of it as lowercase contains "tlm_hw_") of folders (((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of parent folder of client folder of site "actionsite"))) & "/LMT/CIT/tlm_hw_scans/"))) else (unique values of (following texts of lasts ">" of preceding texts of lasts "<" of lines containing "Serial" whose (line number of it < 15) of files whose (name of it as lowercase contains "tlm_hw_") of folders (((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of parent folder of client folder of site "actionsite"))) & "/LMT/CIT/tlm_hw_scans/"))) ) else "Missing Hardware Scan")) )