( if ( number of elements ofit=0 ) then"PASS"else"FAIL - Issues: " & concatenation ","of elements ofit ) of set of ( following texts whose ( it does not contain "12"AND ( itas integer < 12 ) of first 2of ( itas trimmed string ) of following text of first "DirectX"ofit ) of first ": "of ( itas string ) of lines whose ( itas trimmed string startswith"DirectX Version: " ) of it; following texts whose ( ( itas trimmed string as version < "2.0" ) of following text of first "WDDM"ofit ) of firsts ": "of ( itas string ) of lines whose ( itas trimmed string startswith"Driver Model:"anditcontains"WDDM" ) ofit ) of file "win11-eligibility\dxdiag.txt"of parent folder of client |"probe not run"
(if (number of elements ofit=0) then"PASS"else"FAIL - Issues: " & concatenation ","of elements ofit ) of set of ( following texts whose (it does not contain "12"AND (itas integer < 12 ) of first 2of (itas trimmed string) of following text of first "DirectX"ofit) of first ": "of (itas string) of lines whose (itas trimmed string startswith"DirectX Version: ") of it; following texts whose ( (itas trimmed string as version < "2.0") of following text of first "WDDM"ofit) of firsts ": "of (itas string) of lines whose (itas trimmed string startswith"Driver Model:"anditcontains"WDDM") ofit)of file "win11-eligibility\dxdiag.txt"of parent folder of client |"probe not run"
( if ( it >=2004 ) then"PASS"else"FAIL - Current Version: " & ( itas string ) ) of ( itas integer ) of value "ReleaseID"of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"of native registry
(if (it >=2004) then"PASS"else"FAIL - Current Version: " & (itas string)) of (itas integer) of value "ReleaseID"of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"of native registry
current date - ( ( ( preceding text of first " days"of ( ( current date - "01 Jan 1970"as date ) as string ) ) as integer ) - ( ( preceding text of firsts ":"of following text of firsts ":"of following text of firsts ":"of ( lines whose ( itstartswith"tc:" ) of file "/etc/shadow" ) ) as integer ) ) *day < "Thu, 12 May 2022"as date
current date - (((preceding text of first " days"of ((current date - "01 Jan 1970"as date) as string)) as integer) - ((preceding text of firsts ":"of following text of firsts ":"of following text of firsts ":"of (lines whose (itstartswith"tc:") of file "/etc/shadow")) as integer))*day < "Thu, 12 May 2022"as date
( NOT ( exists setting "_BESClient_Resource_WorkIdle"whose ( exist value whose ( itas string = ( if ( ( sum of cores of cpupackage as floating point ) > 10 ) then"100"else ( ( ( sum of cores of cpupackage as floating point ) * 10 ) as integer as string ) ) ) ofit ) of client ) ) OR ( NOT ( ( ( if ( notexists setting "_BESClient_Resource_SleepIdle"of client ORnotexists value of setting "_BESClient_Resource_SleepIdle"of client ) then480else ( value of setting "_BESClient_Resource_SleepIdle"of client as integer ) ) as floating point as integer ) =480 ) )
(NOT (exists setting "_BESClient_Resource_WorkIdle"whose (exist value whose (itas string = (if ((sum of cores of cpupackage as floating point) > 10) then"100"else (((sum of cores of cpupackage as floating point) * 10) as integer as string)) ) ofit)of client)) OR (NOT(((if (notexists setting "_BESClient_Resource_SleepIdle"of client ORnotexists value of setting "_BESClient_Resource_SleepIdle"of client) then480else (value of setting "_BESClient_Resource_SleepIdle"of client as integer)) as floating point as integer) =480))
/* TCP exclusion is not present, with a start port at or below 52315 and end port at or above 52315 */notexists ( ( ( hexadecimal integer ( first 4ofit ) , ( hexadecimal integer ( first 4ofit ) ) + ( hexadecimal integer ( it ) ) of concatenation of characters ( 6;7;4;5 ) ofit - 1 ) of names ofit ) of values whose ( itas string ="1200ffff" ) of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a03-9b1a-11d4-9123-0050047759bc}\29"of registry ) whose ( item 0ofit <= 52315and item 1ofit >= 52315 )
/* TCP exclusion is not present, with a start port at or below 52315 and end port at or above 52315 */notexists (((hexadecimal integer (first 4ofit), (hexadecimal integer (first 4ofit)) + (hexadecimal integer (it)) of concatenation of characters (6;7;4;5) ofit - 1) of names ofit) of values whose (itas string ="1200ffff") of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a03-9b1a-11d4-9123-0050047759bc}\29"of registry) whose (item 0ofit <= 52315and item 1ofit >= 52315)
( notexists settings "_BESClient_Download_PreCacheStageDiskLimitMB"whose ( ( it >= 20000 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "_BESClient_Download_NormalStageDiskLimitMB"whose ( ( it >= 20000 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "_BESClient_Download_DownloadsCacheLimitMB"whose ( ( it >= 2000 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "_BESClient_Download_MinimumDiskFreeMB"whose ( ( it >= 2000 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "_BESClient_Comm_CommandPollIntervalSeconds"whose ( ( it <= 43200 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "_BESClient_Comm_CommandPollEnable"whose ( ( it=1 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "__RelaySelect_Automatic"whose ( ( it=1 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists setting "_BESClient_RelaySelect_FailoverRelayList"whose ( value ofit="DMZRELAYNAME" ) of client ) OR ( notexists setting "_BESClient_Download_Direct_Domainlist"whose ( value ofit="" ) of client ) OR ( notexists setting "_BESClient_Download_Direct"whose ( ( it=0 ) of ( itas string as integer ) of values ofit ) of client ) OR ( notexists settings "_BESClient_PersistentConnection_Enabled"whose ( ( it=1 ) of ( itas string as integer ) of values ofit ) of client )
( notexists settings "_BESClient_Download_PreCacheStageDiskLimitMB"whose( (it >= 20000) of (itas string as integer) of values ofit ) of client ) OR ( notexists settings "_BESClient_Download_NormalStageDiskLimitMB"whose( (it >= 20000) of (itas string as integer) of values ofit ) of client ) OR ( notexists settings "_BESClient_Download_DownloadsCacheLimitMB"whose( (it >= 2000) of (itas string as integer) of values ofit ) of client ) OR ( notexists settings "_BESClient_Download_MinimumDiskFreeMB"whose( (it >= 2000) of (itas string as integer) of values ofit ) of client ) OR ( notexists settings "_BESClient_Comm_CommandPollIntervalSeconds"whose( (it <= 43200) of (itas string as integer) of values ofit ) of client ) OR ( notexists settings "_BESClient_Comm_CommandPollEnable"whose( (it=1) of (itas string as integer) of values ofit ) of client ) OR ( notexists settings "__RelaySelect_Automatic"whose( (it=1) of (itas string as integer) of values ofit ) of client ) OR ( notexists setting "_BESClient_RelaySelect_FailoverRelayList"whose (value ofit="DMZRELAYNAME") of client) OR ( notexists setting "_BESClient_Download_Direct_Domainlist"whose (value ofit="") of client) OR (notexists setting "_BESClient_Download_Direct"whose( (it=0) of (itas string as integer) of values ofit ) of client) OR ( notexists settings "_BESClient_PersistentConnection_Enabled"whose( (it=1) of (itas string as integer) of values ofit ) of client )
( ( ifexists value "NoAutoUpdate"ofitthen value "NoAutoUpdate"ofitas integer else0 ) of key "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"of registry ) !=0
((ifexists value "NoAutoUpdate"ofitthen value "NoAutoUpdate"ofitas integer else0) of key "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"of registry) !=0
ifexists file "DISM.txt"of parent folder of client then preceding texts of firsts "|"of lines whose ( itcontains"|"ANDNOT ( itcontains"----------" ) ANDNOT ( itcontains"Feature Name" ) ) of file "DISM.txt"of parent folder of client as trimmed string else"<no results>"
ifexists file "DISM.txt"of parent folder of client then preceding texts of firsts "|"of lines whose (itcontains"|"ANDNOT(itcontains"----------") ANDNOT(itcontains"Feature Name")) of file "DISM.txt"of parent folder of client as trimmed string else"<no results>"
line ( ( line number ofit + 1 ) of lines whose ( itcontains"[STATUS]" ) of file "GEN005280.results"of folders ( ( ( pathname of client folder of current site ) ) & "/SCM/mytmp/results" ) ) of file "GEN005280.results"of folders ( ( ( pathname of client folder of current site ) ) & "/SCM/mytmp/results" ) ="FAIL"
line ((line number ofit + 1 ) of lines whose (itcontains"[STATUS]") of file "GEN005280.results"of folders ( ( ( pathname of client folder of current site) ) & "/SCM/mytmp/results")) of file "GEN005280.results"of folders ( ( ( pathname of client folder of current site) ) & "/SCM/mytmp/results") ="FAIL"
( ( now > item 1ofit ) AND ( if ( item 0ofit="once" ) then ( ( item 1ofit & item 2ofit ) ) elseif ( item 0ofit="daily" ) then ( ( item 1ofit + ( ( now - item 1ofit ) / day / item 3ofit * ( day * item 3ofit ) ) ) & item 2ofit ) elseif ( item 0ofit="weekly" ) then ( it & ( ( value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer ) * minute ) ) of ( maximum of ( it - 1*day; it - 2*day; it - 3*day; it - 4*day; it - 5*day; it-6 * day;it; it + 1*day; it + 2*day;it + 3*day;it + 4*day;it + 5*day;it + 6*day ) whose ( it < now AND ( ( ( value of setting "MaintenanceWindow_DaysOfWeek"of client as string as lowercase ) ) contains ( first 3of ( itas string ) as day_of_week as string as lowercase ) ) ) of ( ( ( current date - item 0ofit ) / ( item 3ofit * week ) * ( item 3ofit * week ) ) + item 0ofit & item 1ofit ) of ( ( ( ( date ( local time zone ) of item 1ofit - ( ( first 3of ( item 1ofitas string ) as day_of_week ) - sunday ) ) ) , time ( local time zone ) of item 1of it, item 2of it, item 3ofit ) ) ) elseif ( item 0ofit="monthly" ) then ( it & ( value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer * minute ) ) of ( ( if ( item 3ofit=0 ) then ( maximum of ( ( ifexists ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( current month & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) then ( ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( current month & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - month ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) then ( if ( current month as integer =1 ) then ( ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - month ) & ( ( current year ) - 1* year ) ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - month ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - ( 2*month ) ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) then ( if ( current month as integer =1 ) then ( ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - ( 2*month ) ) & ( ( current year ) - 1* year ) ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - ( 2*month ) ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else nothing ) ) whose ( it < now ) ) else ( maximum of ( ( ifexists ( ( current month & ( day_of_month ( item 3ofit ) ) ) ) then ( ( ( current month & ( day_of_month ( item 3ofit ) ) ) & current year ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( ( ( current month - 1* month ) & ( day_of_month ( item 3ofit ) ) ) ) then ( if ( current month as integer =1 ) then ( ( ( ( current month - 1*month ) & ( day_of_month ( item 3ofit ) ) ) & ( current year - 1*year ) ) & time ( local time zone ) of item 1ofit ) else ( ( ( current month - 1*month ) & ( day_of_month ( item 3ofit ) ) ) & current year ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( ( ( current month - 2*month ) & ( day_of_month ( item 3ofit ) ) ) ) then ( if ( current month as integer =1 ) then ( ( ( ( current month - 2*month ) & ( day_of_month ( item 3ofit ) ) ) & ( current year - 1*year ) ) & time ( local time zone ) of item 1ofit ) else ( ( ( current month - 2*month ) & ( day_of_month ( item 3ofit ) ) ) & current year ) & time ( local time zone ) of item 1ofit ) else nothing ) ) whose ( it < now ) ) ) ) else error "invalid maintenance type" ) contains now ) of ( value of setting "MaintenanceWindow_RepeatType"of client, ( value of setting "MaintenanceWindow_StartTime"of client & " " & local time zone as string ) as time, ( value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer ) * minute, value of setting "MaintenanceWindow_RepeatInterval"of client as integer ) = value of setting "__Lockstate"of client as boolean
((now > item 1ofit) AND (if (item 0ofit="once") then ((item 1ofit & item 2ofit)) elseif (item 0ofit="daily") then ((item 1ofit + ((now - item 1ofit) / day / item 3ofit * (day * item 3ofit))) & item 2ofit) elseif (item 0ofit="weekly") then (it & ((value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer) * minute)) of (maximum of (it - 1*day; it - 2*day; it - 3*day; it - 4*day; it - 5*day; it-6 * day;it; it + 1*day; it + 2*day;it + 3*day;it + 4*day;it + 5*day;it + 6*day) whose (it < now AND (((value of setting "MaintenanceWindow_DaysOfWeek"of client as string as lowercase)) contains (first 3of (itas string) as day_of_week as string as lowercase))) of (((current date - item 0ofit) / (item 3ofit * week) * (item 3ofit * week)) + item 0ofit & item 1ofit) of ((((date (local time zone) of item 1ofit - ((first 3of (item 1ofitas string) as day_of_week) - sunday))) , time (local time zone) of item 1of it, item 2of it, item 3ofit))) elseif (item 0ofit="monthly") then (it & (value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer * minute)) of ((if (item 3ofit=0) then (maximum of ((ifexists (first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of (current month & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week)) then (((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of (current month & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - month) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week)) then (if (current month as integer =1) then (((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - month) & ((current year) - 1* year)) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else ((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - month) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - (2*month)) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week)) then (if (current month as integer =1) then (((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - (2*month)) & ((current year) - 1* year)) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else ((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - (2*month)) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else nothing)) whose (it < now)) else (maximum of ((ifexists ((current month & (day_of_month (item 3ofit)))) then (((current month & (day_of_month (item 3ofit))) & current year) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (((current month - 1* month) & (day_of_month (item 3ofit)))) then (if (current month as integer =1) then ((((current month - 1*month) & (day_of_month (item 3ofit))) & (current year - 1*year)) & time (local time zone) of item 1ofit) else (((current month - 1*month) & (day_of_month (item 3ofit))) & current year) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (((current month - 2*month) & (day_of_month (item 3ofit)))) then (if (current month as integer =1) then ((((current month - 2*month) & (day_of_month (item 3ofit))) & (current year - 1*year)) & time (local time zone) of item 1ofit) else (((current month - 2*month) & (day_of_month (item 3ofit))) & current year) & time (local time zone) of item 1ofit) else nothing)) whose (it < now)))) else error "invalid maintenance type") contains now) of (value of setting "MaintenanceWindow_RepeatType"of client, (value of setting "MaintenanceWindow_StartTime"of client & " " & local time zone as string) as time, (value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer) * minute, value of setting "MaintenanceWindow_RepeatInterval"of client as integer) = value of setting "__Lockstate"of client as boolean
if ( ( it="WinXP"ORit="WinXP-2003"ORit="WinVista"ORit="Win7"ORit="Win2008"ORit="Win2008R2" ) of name of operating system ) then ( ( exists values whose ( name ofit="PnPCapabilities"ANDitas integer =48 ) of keys whose ( value "Characteristics"ofitas integer =132 ) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}"of registry ) ) else ( if ( name of operating system ="Mac OS X" ) then ( ifexists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist"then ( ( ifit=1thentrueelsefalse ) of integer "Wake On LAN"of dictionary "AC Power"of dictionary "Custom Profile"of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist" ) elsefalse ) elsefalse )
if ((it="WinXP"ORit="WinXP-2003"ORit="WinVista"ORit="Win7"ORit="Win2008"ORit="Win2008R2") of name of operating system) then ((exists values whose(name ofit="PnPCapabilities"ANDitas integer =48 ) of keys whose(value "Characteristics"ofitas integer =132) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}"of registry)) else (if (name of operating system ="Mac OS X") then (ifexists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist"then ((ifit=1thentrueelsefalse) of integer "Wake On LAN"of dictionary "AC Power"of dictionary "Custom Profile"of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist") elsefalse) elsefalse)
if ( ( it="WinXP"ORit="WinXP-2003"ORit="WinVista"ORit="Win7"ORit="Win2008"ORit="Win2008R2" ) of name of operating system ) then ( ( notexists values whose ( name ofit="PnPCapabilities"ANDitas integer =288 ) of keys whose ( value "Characteristics"ofitas integer =132 ) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}"of registry ) ) else ( if ( name of operating system ="Mac OS X" ) then ( ifexists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist"then ( ( ifit=0thentrueelsefalse ) of integer "Wake On LAN"of dictionary "AC Power"of dictionary "Custom Profile"of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist" ) elsefalse ) elsefalse )
if ((it="WinXP"ORit="WinXP-2003"ORit="WinVista"ORit="Win7"ORit="Win2008"ORit="Win2008R2") of name of operating system) then ((notexists values whose (name ofit="PnPCapabilities"ANDitas integer =288) of keys whose (value "Characteristics"ofitas integer =132) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}"of registry)) else (if (name of operating system ="Mac OS X") then (ifexists file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist"then ((ifit=0thentrueelsefalse) of integer "Wake On LAN"of dictionary "AC Power"of dictionary "Custom Profile"of dictionary of file "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist") elsefalse) elsefalse)
( exists setting "_BESClient_Relay_NameOverride"of client andexistsitwhose ( existsitas integer ) of preceding texts of firsts "."of following texts of substrings "."of ( "." & ( value of setting "_BESClient_Relay_NameOverride"of client as string ) & "." ) ) AND ( notexistsitwhose ( it= value of setting "_BESClient_Relay_NameOverride"of client ) of addresses whose ( itas string !="0.0.0.0" ) of ip interfaces whose ( loopback ofit=false ) of network )
(exists setting "_BESClient_Relay_NameOverride"of client andexistsitwhose (existsitas integer) of preceding texts of firsts "."of following texts of substrings "."of ("." & (value of setting "_BESClient_Relay_NameOverride"of client as string) & ".")) AND (notexistsitwhose (it= value of setting "_BESClient_Relay_NameOverride"of client) of addresses whose (itas string !="0.0.0.0") of ip interfaces whose (loopback ofit=false) of network)
( ( ( 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))