( name of operating system ="Win2000" ) OR ( name of operating system ="WinNT" ) OR ( name of operating system ="WinXP" ) OR ( name of operating system ="WinXPe" )
(name of operating system ="Win2000") OR (name of operating system ="WinNT") OR (name of operating system ="WinXP") OR (name of operating system ="WinXPe")
( ( ( name ofit="WinXP"or name ofit="WinXPe" ) AND ( it=""ORit ends with"1" ) of csd version ofit ) OR ( ( name ofit="Win2003"OR name ofit="WinXP-2003" ) AND csd version ofit="" ) ) of operating system
(((name ofit="WinXP"or name ofit="WinXPe") AND (it=""ORit ends with"1") of csd version ofit) OR ((name ofit="Win2003"OR name ofit="WinXP-2003") AND csd version ofit="")) of operating system
name of operating system startswith"Win"AND ( ( ( it="BES Client"ORit="Enterprise Client" ) of name of parent folder of regapp "BESClient.exe" ) ANDexists ( values "DisplayName"of keys of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry ) whose ( ( it="BigFix Enterprise Client"ORit="BigFix for IBM Proventia ESC Client"ORit="ESP Agent"ORit="Trend Micro Endpoint Security Platform"ORit="Tivoli Endpoint Manager Client" ) of ( itas string ) ) )
name of operating system startswith"Win"AND (((it="BES Client"ORit="Enterprise Client") of name of parent folder of regapp "BESClient.exe") ANDexists (values "DisplayName"of keys of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"of registry) whose ((it="BigFix Enterprise Client"ORit="BigFix for IBM Proventia ESC Client"ORit="ESP Agent"ORit="Trend Micro Endpoint Security Platform"ORit="Tivoli Endpoint Manager Client") of (itas string)))
( ( name ofit="WinXP"AND ( it!=""AND last 1ofit > "1" ) of csd version ofit ) OR ( ( name ofit="Win2003"OR name ofit="WinXP-2003" ) AND csd version ofit!="" ) ) of operating system
((name ofit="WinXP"AND (it!=""AND last 1ofit > "1") of csd version ofit) OR ((name ofit="Win2003"OR name ofit="WinXP-2003") AND csd version ofit!="")) of operating system
( ( ( sum of sizes of files of folders of folders ofit ) + ( sum of sizes of files ofit ) ) of folder "sha1"of folder ( if ( ( exists setting "_BESRelay_UploadManager_BufferDirectory"ofitandexists value of setting "_BESRelay_UploadManager_BufferDirectory"ofit ) of client ) then ( value of setting "_BESRelay_UploadManager_BufferDirectory"of client as string ) else ( if ( name of operating system startswith"Win" ) then ( parent folder of parent folder of client as string & "\BES Relay\UploadManagerData\BufferDir" ) else ( "/var/opt/BESRelay/UploadManagerData/BufferDir" ) ) ) >= it ) of ( if ( ( exists setting "_BESRelay_UploadManager_BufferDirectoryMaxSize"ofitandexists value of setting "_BESRelay_UploadManager_BufferDirectoryMaxSize"ofit ) of client ) then ( value of setting "_BESRelay_UploadManager_BufferDirectoryMaxSize"of client as integer ) else ( 20971520 ) )
(((sum of sizes of files of folders of folders ofit) + (sum of sizes of files ofit)) of folder "sha1"of folder (if ((exists setting "_BESRelay_UploadManager_BufferDirectory"ofitandexists value of setting "_BESRelay_UploadManager_BufferDirectory"ofit) of client) then (value of setting "_BESRelay_UploadManager_BufferDirectory"of client as string) else (if (name of operating system startswith"Win") then (parent folder of parent folder of client as string & "\BES Relay\UploadManagerData\BufferDir") else ("/var/opt/BESRelay/UploadManagerData/BufferDir"))) >= it) of (if ((exists setting "_BESRelay_UploadManager_BufferDirectoryMaxSize"ofitandexists value of setting "_BESRelay_UploadManager_BufferDirectoryMaxSize"ofit) of client) then (value of setting "_BESRelay_UploadManager_BufferDirectoryMaxSize"of client as integer) else (20971520))
( ( name ofit="WinXP"AND ( it=""ORit ends with"1" ) of csd version ofit ) OR ( ( name ofit="Win2003"OR name ofit="WinXP-2003" ) AND csd version ofit="" ) ) of operating system
((name ofit="WinXP"AND (it=""ORit ends with"1") of csd version ofit) OR ((name ofit="Win2003"OR name ofit="WinXP-2003") AND csd version ofit="")) of operating system
( ( name ofit="WinXP" ) or ( name ofit="Win2003" ) OR ( name ofit="WinXP-2003" ) or ( name ofit="Win2000"and ( ( csd version ofit="Service Pack 3" ) or ( csd version ofit="Service Pack 4" ) ) ) ) of operating system
((name ofit="WinXP") or (name ofit="Win2003") OR (name ofit="WinXP-2003") or (name ofit="Win2000"and ((csd version ofit="Service Pack 3") or (csd version ofit="Service Pack 4")))) of operating system
( ( name ofit="WinNT"and ( csd version ofit="Service Pack 6" ) ) or ( name ofit="Win2000"and ( ( csd version ofit="" ) or ( csd version ofit="Service Pack 1" ) or ( csd version ofit="Service Pack 2" ) ) ) ) of operating system
((name ofit="WinNT"and (csd version ofit="Service Pack 6")) or (name ofit="Win2000"and ((csd version ofit="") or (csd version ofit="Service Pack 1") or (csd version ofit="Service Pack 2")))) of operating system
name of operating system ="Win2000"OR name of operating system ="WinXP"OR name of operating system ="Win2003"OR name of operating system ="WinXP-2003"OR ( name of operating system ="WinNT"AND csd version of operating system contains"6" )
name of operating system ="Win2000"OR name of operating system ="WinXP"OR name of operating system ="Win2003"OR name of operating system ="WinXP-2003"OR (name of operating system ="WinNT"AND csd version of operating system contains"6")
if ( name of operating system startswith"Win" ) then ( ( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofit ) of registry OR ( exists key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofit ) of registry ) else ( true )
if(name of operating system startswith"Win") then((exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\BESPendingRestart"ofit) of registry OR (exists key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofitANDexists value "BESPendingRestart"of key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce"ofit) of registry) else (true)
( name of operating system as lowercase contains"linux red hat" ) OR ( name of operating system as lowercase contains"linux suse" ) OR ( name of operating system as lowercase contains"SunOS 5.7" ) OR ( name of operating system as lowercase contains"SunOS 5.8" ) OR ( name of operating system as lowercase contains"SunOS 5.9" ) OR ( name of operating system contains"HP-UX" ) OR ( name of operating system as lowercase contains"linux fedora core" )
(name of operating system as lowercase contains"linux red hat") OR (name of operating system as lowercase contains"linux suse") OR (name of operating system as lowercase contains"SunOS 5.7") OR (name of operating system as lowercase contains"SunOS 5.8") OR (name of operating system as lowercase contains"SunOS 5.9") OR (name of operating system contains"HP-UX") OR (name of operating system as lowercase contains"linux fedora core")
( ( itstartswith"linux red hat"ANDit does not contain "enterprise"AND ( following text of last " "ofitas version ="8.0"OR following text of last " "ofitas version ="9.0" ) ) OR ( itstartswith"linux fedora core"AND following text of last " "ofitas version < "3" ) ) of ( name of operating system as lowercase )
((itstartswith"linux red hat"ANDit does not contain "enterprise"AND (following text of last " "ofitas version ="8.0"OR following text of last " "ofitas version ="9.0")) OR (itstartswith"linux fedora core"AND following text of last " "ofitas version < "3")) of (name of operating system as lowercase)
( name ofit!="WinME"AND name ofit!="Win98"AND name ofit!="Win95"ANDNOT ( name ofit="WinVista"and product type ofit!= nt workstation product type ) AND name ofit!="Win2008" ) of operating system
(name ofit!="WinME"AND name ofit!="Win98"AND name ofit!="Win95"ANDNOT (name ofit="WinVista"and product type ofit!= nt workstation product type) AND name ofit!="Win2008") of operating system
if ( existstruewhose ( iftruethen ( name of operating system startswith"Win"ANDexists regapp "BESConsole.exe" ) elsefalse ) ) then version of regapp "BESConsole.exe"as string else"Not Installed"
if (existstruewhose(iftruethen(name of operating system startswith"Win"ANDexists regapp "BESConsole.exe")elsefalse)) then version of regapp "BESConsole.exe"as string else"Not Installed"