if exists file
(
parent folder of regapp "besclient.exe" as string & "\ComplianceWhitelist\ComplianceWhitelist.txt"
)
then "[" & concatenation "] - [" of
(
elements of
(
set of
(
(
following texts of firsts "\" of unique values of
(
(
members of local group "Administrators"
)
as string
)
as lowercase
)
)
- set of
(
unique values of
(
lines of file
(
parent folder of regapp "besclient.exe" as string & "\ComplianceWhitelist\ComplianceWhitelist.txt"
)
)
)
)
)
& "]" else "No Compliance Whitelist on Endpoint"
if exists file (parent folder of regapp "besclient.exe" as string & "\ComplianceWhitelist\ComplianceWhitelist.txt") then "[" & concatenation "] - [" of (elements of (set of ((following texts of firsts "\" of unique values of ((members of local group "Administrators") as string) as lowercase)) - set of (unique values of (lines of file (parent folder of regapp "besclient.exe" as string & "\ComplianceWhitelist\ComplianceWhitelist.txt"))))) & "]" else "No Compliance Whitelist on Endpoint"