Help with Auto Relay Selection

(imported topic written by andrewp91)

I am trying to create a custom task that will apply the “BES Client Setting: Enable Auto Relay Selection” task to only my workstations. I have created a custom copy of the existing “BES Client Setting: Enable Auto relay Selection” task and added have the following text as the relevance statement so this only gets applied to my workstations. I got this relevance statement from the Desktops automatic group which has 2670 clients. When I look at the custom task that I created yesterday, only 1 computer is showing up in the Applicable Computers tab.

(version of client >= “5.0”) AND (true and exists true whose (if true then ((if (name of operating system as lowercase starts with “win”) then (if (name of operating system = “Win95” OR name of operating system = “Win98” or name of operating system = “WinME”) then “Workstation” else (if (value “ProductType” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions” of registry = “WinNT”) then “Workstation” else “Server”)) else "Unknown - " & name of operating system) as string as lowercase = “Workstation” as lowercase) else false) and exists true whose (if true then ((if (exists wmi) then ((exists selects “* from win32_Battery” of wmi) as string) else (“N/A”)) as string as lowercase = “False” as lowercase) else false)) AND (((not exists setting “__RelaySelect_Automatic” of client) OR (value of it does not equal ((“1”) as string)) of setting “__RelaySelect_Automatic” of client))

(imported comment written by jessewk)

You could just use the original task, but only target workstations when you deploy the action. To do so, on the targeting page in the Take Action Dialog, select the second radio button and then navigate in the filter tree to All computers --> By Retrieved Property --> By Server/Workstation --> By Workstation

Jesse