The Match attribute

Match=

The <TypeData> XML element in the file is parsed, starting from the top. If there is a match, the search stops, so it is important to enter the child <Type> element rules in the correct order. The rules need to identify a BITS job by a certain attribute of that job, be it title, download URL or some other marker.

The XML file supports several values for the Match attribute. These values can determine the type of download as follows:

Equals

When the Match attribute is set to a value of "Equals", entries attempt to exactly match the title of a BITS/DO download. The comparison string to be matched against is the content of the <Type> XML element and is contained between the opening and closing XML tags (within the > <).

<Type TypeID="215" Match="Equals" CCMDTSType="0">CCMDTS Job</Type>

In the example above, we know that all Microsoft ConfigMgr content downloads have a BITS job title of “CCMDTS Job”. More on ConfigMgr specifics later in this document.

Contains

If you only know part of the job title you can assign the Match attribute a value of "Contains" to obtain a match.

<Type TypeID="109" Match="Contains">Microsoft Outlook Offline Address Book</Type>

In this example, if the Job title includes the comparison string contained between the opening and closing XML tags (within the > < which in the case above is “Microsoft Outlook Offline Address Book”) a match will be made.

StartsWith

The "StartsWith" value checks if the display name of the job begins with the defined comparison string.

<Type TypeID="6" Match="StartsWith">Microsoft Outlook</Type>

The above rule would match “Microsoft Outlook Offline Address Book” but could also match “Microsoft Outlook Some other download” – which is why it is important to order your <Type> XML element rules correctly.

Last updated