exists key ( if ( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall"of registry ) then ( "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\" ) else ( "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\" ) & ( if ( current profile type of firewall = domain firewall profile type ) then ( "DomainProfile" ) else ( "StandardProfile" ) ) ) whose ( value "DoNotAllowExceptions"ofit=1 ) of registry OR ( ( notexists globally open port whose ( port ofitas string = ( value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string ) AND protocol ofit= udp AND enabled ofit ) ofitANDnotexists authorized application whose ( process image file name ofitas lowercase ends with"besclient.exe"AND enabled ofit ) ofit ) of current profile of local policy of firewall ANDexists internet connection firewall whose ( enabled ofitANDnotexists port mapping whose ( enabled ofitAND protocol ofit="udp"AND internal port ofitas string = ( value "ListenPort"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry ) as string ) ofit ) of adapters of network )
exists key (if (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall"of registry) then ("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\") else ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\") & (if (current profile type of firewall = domain firewall profile type) then ("DomainProfile") else ("StandardProfile"))) whose (value "DoNotAllowExceptions"ofit=1) of registry OR ((notexists globally open port whose (port ofitas string = (value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string) AND protocol ofit= udp AND enabled ofit) ofitANDnotexists authorized application whose (process image file name ofitas lowercase ends with"besclient.exe"AND enabled ofit) ofit) of current profile of local policy of firewall ANDexists internet connection firewall whose (enabled ofitANDnotexists port mapping whose (enabled ofitAND protocol ofit="udp"AND internal port ofitas string = (value "ListenPort"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry) as string) ofit) of adapters of network)
exists key ( if ( exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall"of registry ) then ( "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\" ) else ( "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\" ) & ( if ( current profile type of firewall = domain firewall profile type ) then ( "DomainProfile" ) else ( "StandardProfile" ) ) ) whose ( value "DoNotAllowExceptions"ofit=1 ) of registry OR ( ( notexists globally open port whose ( enabled ofitAND port ofitas string = ( value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string ) AND protocol ofit= tcp ) of current profile of local policy of firewall ) AND ( exists internet connection firewall whose ( enabled ofitAND ( notexists port mapping whose ( enabled ofitAND protocol ofit="tcp"AND internal port ofitas string = ( value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string ) ) ofit ) ) of adapters of network ) AND ( notexists authorized application whose ( enabled ofitAND ( it ends with"besrelay.exe"ORit ends with"filldb.exe" ) of ( process image file name ofitas lowercase ) ) of current profile of local policy of firewall ) ) OR ( ( notexists globally open port whose ( enabled ofitAND port ofitas string = ( value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string ) AND protocol ofit= udp ) of current profile of local policy of firewall ) AND ( exists internet connection firewall whose ( enabled ofitAND ( notexists port mapping whose ( enabled ofitAND protocol ofit="udp"AND internal port ofitas string = ( value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string ) ) ofit ) ) of adapters of network ) AND ( notexists authorized application whose ( enabled ofitAND ( it ends with"besclient.exe" ) of ( process image file name ofitas lowercase ) ) of current profile of local policy of firewall ) )
exists key (if (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall"of registry) then ("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\") else ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\") & (if (current profile type of firewall = domain firewall profile type) then ("DomainProfile") else ("StandardProfile"))) whose (value "DoNotAllowExceptions"ofit=1) of registry OR ((notexists globally open port whose (enabled ofitAND port ofitas string = (value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string) AND protocol ofit= tcp) of current profile of local policy of firewall) AND (exists internet connection firewall whose (enabled ofitAND (notexists port mapping whose (enabled ofitAND protocol ofit="tcp"AND internal port ofitas string = (value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string)) ofit)) of adapters of network) AND (notexists authorized application whose (enabled ofitAND (it ends with"besrelay.exe"ORit ends with"filldb.exe") of (process image file name ofitas lowercase)) of current profile of local policy of firewall)) OR ((notexists globally open port whose (enabled ofitAND port ofitas string = (value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string) AND protocol ofit= udp) of current profile of local policy of firewall) AND (exists internet connection firewall whose (enabled ofitAND (notexists port mapping whose (enabled ofitAND protocol ofit="udp"AND internal port ofitas string = (value "ListenPort"of key "HKLM\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions"of registry as string)) ofit)) of adapters of network) AND (notexists authorized application whose (enabled ofitAND (it ends with"besclient.exe") of (process image file name ofitas lowercase)) of current profile of local policy of firewall))
( ( ( 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))
exists file whose ( name ofitas string ="rmdir.bat"OR name ofitas string ="client.bat" ) of folder ( pathname of client folder of site "bessupport" ) ORexists folder "__besdiag"of folder ( pathname of client folder of site "bessupport" )
exists file whose (name ofitas string ="rmdir.bat"OR name ofitas string ="client.bat") of folder (pathname of client folder of site "bessupport") ORexists folder "__besdiag"of folder (pathname of client folder of site "bessupport")
( ( language of version block of file "kernel32.dll"of system folder does not contain "English" ) AND ( notexists values of keys "HKLM\System\CurrentControlSet\Control\Nls\MUILanguages"of registry ) )
((language of version block of file "kernel32.dll"of system folder does not contain "English") AND (notexists values of keys "HKLM\System\CurrentControlSet\Control\Nls\MUILanguages"of registry))
( free space of drive ( first 2of ( value "value"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\Settings\Client\_BESRelay_HTTPServer_ServerRootPath"of x32 registry as string ) ) + ( sum of ( sizes of files of folders of folder ( ( if ( value of setting "_BESRelay_HTTPServer_ServerRootPath"of client ) ends with"\"then ( ( value of setting "_BESRelay_HTTPServer_ServerRootPath"of client ) & "bfmirror\downloads" ) else ( ( value of setting "_BESRelay_HTTPServer_ServerRootPath"of client ) & "\bfmirror\downloads" ) ) ) ) ) ) <free space of drive whose ( type ofit="DRIVE_FIXED"AND free space ofit= maximum of ( free spaces of drives whose ( type ofit="DRIVE_FIXED" ) ) )
(free space of drive (first 2of (value "value"of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\Settings\Client\_BESRelay_HTTPServer_ServerRootPath"of x32 registry as string)) + (sum of (sizes of files of folders of folder ((if(value of setting "_BESRelay_HTTPServer_ServerRootPath"of client) ends with"\"then ((value of setting "_BESRelay_HTTPServer_ServerRootPath"of client) & "bfmirror\downloads") else ((value of setting "_BESRelay_HTTPServer_ServerRootPath"of client) & "\bfmirror\downloads")))))) <free space of drive whose (type ofit="DRIVE_FIXED"AND free space ofit= maximum of (free spaces of drives whose (type ofit="DRIVE_FIXED")))
if ( existstruewhose ( iftruethen ( exists relay service ) elsefalse ) ) then ( if ( version of client >= "8.0" ) then ( version of relay service as string ) else ( version of file ( ( if ( character 0ofit="%22" ) then ( substring between "%22"ofit ) elseit ) of image path of relay service ) as string ) ) else"Not Installed"
if (existstruewhose(iftruethen(exists relay service)elsefalse)) then (if (version of client >= "8.0") then (version of relay service as string) else (version of file ((if (character 0ofit="%22") then (substring between "%22"ofit) elseit) of image path of relay service) as string)) else"Not Installed"
if ( existstruewhose ( iftruethen ( exists main gather service ) elsefalse ) ) then ( if ( version of client >= "8.0" ) then ( version of main gather service as string ) else ( version of file ( ( if ( character 0ofit="%22" ) then ( substring between "%22"ofit ) elseit ) of image path of main gather service ) as string ) ) else"Not Installed"
if (existstruewhose(iftruethen(exists main gather service)elsefalse)) then (if (version of client >= "8.0") then (version of main gather service as string) else (version of file ((if (character 0ofit="%22") then (substring between "%22"ofit) elseit) of image path of main gather service) as string)) else"Not Installed"
if ( existstruewhose ( iftruethen ( exists key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry ) elsefalse ) ) then version of file ( value "base"of key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry as string & "BESAPI.dll" ) as string else"Not Installed"
if (existstruewhose(iftruethen(exists key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry)elsefalse)) then version of file (value "base"of key "HKLM\SOFTWARE\BigFix\BESAPI\Paths"of registry as string & "BESAPI.dll") as string else"Not Installed"
if ( existstruewhose ( iftruethen ( exists service "BESWebReportsServer" ) elsefalse ) ) then ( if ( version of client >= "8.0" ) then ( version of service "BESWebReportsServer"as string ) else ( version of file ( ( if ( character 0ofit="%22" ) then ( substring between "%22"ofit ) elseit ) of image path of service "BESWebReportsServer" ) as string ) ) else"Not Installed"
if (existstruewhose(iftruethen(exists service "BESWebReportsServer")elsefalse)) then (if (version of client >= "8.0") then (version of service "BESWebReportsServer"as string) else (version of file ((if (character 0ofit="%22") then (substring between "%22"ofit) elseit) of image path of service "BESWebReportsServer") as string)) else"Not Installed"