4.2.21 Targeting Sample
The following is an example of a Targeting XML element. Targeting elements can occur within the Properties element of any configuration. The XML in this example applies various low-level selection criteria to decide whether a preference applies. These include running on DC power, the computer name, the computer speed in megahertz, the availability of a modem, disk space, and so on.
-
<FILTERS> <filterBattery not="0" bool="AND"/> <filterComputer not="0" bool="AND" name="GPTOOLS-02" type="NETBIOS"/> <filterCpu not="0" bool="AND" speedMHz="2000"/> <filterDun not="0" bool="AND" type="modem"/> <filterDisk not="0" bool="AND" freeSpace="80" drive="%SystemDrive%"/> <filterDomain not="0" bool="AND" name="NTTEST.MICROSOFT.COM" userContext="1"/> <filterVariable not="0" bool="AND" variableName="LOCALPOLICY" value="1"/> <filterFile not="0" bool="AND" path="IEXPLORER.EXE" type="EXISTS"/> <filterCollection not="0" bool="AND"/> <filterIpRange not="0" bool="AND" min="10.0.0.1" max="10.0.0.10"/> <filterLanguage not="0" bool="AND" default="1" system="0" native="0" language="9" displayName="English" locale="0"/> <filterLdap not="0" bool="AND" searchFilter="" binding="LDAP:" variableName="" attribute=""/> <filterMacRange not="0" bool="AND" min="A0-00-00-00-00-00" max="A0-00-00-00-00-00"/> <filterMsi type="PRODUCT" subtype="EXISTS" item="" not="0" bool="AND" code="WORD" value="" max="" min="" gte="1" lte="0"/> <filterMsi type="PRODUCT" subtype="VERSION" item="" not="0" bool="AND" code="{FBD367D1-642F-47CF-B79B-9BE48FB34007}" value="" min="4563.10.0.1" max="4563.10.0.9" gte="1" lte="0"/> <filterOs not="0" bool="AND" class="NT" version="2K" type="NE" edition="NE" sp="NE"/> <filterOrgUnit not="0" bool="AND" name="ds=developers" userContext="1" directMember="0"/> <filterPcmcia not="0" bool="AND"/> <filterPortable not="0" bool="AND" unknown="1" docked="1" undocked="1"/> <filterRam not="0" bool="AND" totalMB="256"/> <filterDate not="0" bool="AND" period="WEEKLY" dow="SUN"/> <filterRegistry not="0" bool="AND" type="KEYEXISTS" hive="HKEY_CURRENT_USER" key=""/> <filterGroup not="0" bool="AND" userContext="1" primaryGroup="0" name="CHARISMA\Domain Users" sid="S-1-5-21-3077722463-3052849185-1244025280-513" localGroup="0"/> <filterSite not="0" bool="AND" name="Default-First-Site-Name"/> <filterTerminal not="0" bool="AND" type="NE" option="NE" value=""/> <filterTime not="0" bool="AND" begin="09:00:00" end="17:00:00"/> <filterUser not="0" bool="AND" name="liharris"/> <FilterWmi not="0" bool="AND" query="SELECT * FROM PolicyMakerSettings" nameSpace="Root\cimv2" variableName="" property=""/> <filterProcMode not="0" bool="AND" syncFore="1" asyncFore="1" backRefr="1" forceRefr="0" linkTrns="0" noChg="0" rsopEnbl="0" rsopTrns="0" safeBoot="0" slowLink="0" verbLog="0"/> </FILTERS>