if
(
exists wmi AND exists selects "InstallDate from win32_operatingsystem" of wmi AND not
(
(
string value of selects "InstallDate from win32_operatingsystem" of wmi
)
= ""
)
)
then
(
(
first 4 of
(
first 8 of string value of
(
selects "InstallDate from Win32_OperatingSystem" of wmi
)
)
)
& "-" &
(
first 2 of
(
last 4 of
(
first 8 of string value of
(
selects "InstallDate from Win32_OperatingSystem" of wmi
)
)
)
)
& "-" &
(
last 2 of
(
first 8 of string value of
(
selects "InstallDate from Win32_OperatingSystem" of wmi
)
)
)
)
else
(
"N/A"
)
if (exists wmi AND exists selects "InstallDate from win32_operatingsystem" of wmi AND not ((string value of selects "InstallDate from win32_operatingsystem" of wmi) = "")) then ((first 4 of (first 8 of string value of (selects "InstallDate from Win32_OperatingSystem" of wmi))) & "-" & (first 2 of (last 4 of (first 8 of string value of (selects "InstallDate from Win32_OperatingSystem" of wmi)))) & "-" & (last 2 of (first 8 of string value of (selects "InstallDate from Win32_OperatingSystem" of wmi)))) else ("N/A")