Use XML provisioning to collect custom attributes based on device details. Custom attributes enable you to use advanced product provisioning functionality.

Implementation

To begin collecting custom attributes, follow the steps detailed below:

  1. Navigate to Devices > Staging & Provisioning > Components > Files/Actions > Add and select Windows 7 as your platform.
  2. Create an XML product. For more informatiom, see Create an XML Provisioning File. The manifest must include an action to download the XML file to {installation path}\AirWatch\AgentUI\Cache\Profiles.

Upon receiving the XML file, the AirWatch Agent for Windows 7 creates a custom attributes output file. During the next check-in with AirWatch, the agent sends the output file to the AirWatch Console.

Once the XML file installs, the custom attributes requested in the file exported to the AirWatch Console. These values display in the console in the Device Details page under Custom Attributes. The Device Details page enables you to view the name of the attribute and the values returned from each device. These values can be used to create product assignment rules using the Custom Rules system.

Upon enrollment, the AirWatch Agent for PC automatically generates the Device Model and Serial Number attributes.

Prod_Prov_CustomAttributes

You may also view existing custom attributes for all devices at a particular organization group as well as manually create custom attributes directly in the console. Navigate to Devices > Staging & Provisioning > Custom Attributes > List View to see these custom attributes listed. Any custom attribute created in this manner automatically associates with a device and its respective custom attribute value that is successfully transmitted to the console.

Syncing Registry Settings

In order to synchronize the registry settings on a Windows 7 device with the console, which is likely the most common use of custom attributes for Windows 7 devices, you need to create a custom XML file. Below is an example of the format of an XML file that can pull information from the registry on a device:

<xml version="1.0">
                  <wap-provisioningdoc name="desiredDocName /V_1">
                  	<characteristic type="com.windowspc.getregistryinfo.managed">
                  		<reg_value value_name="KeyName(i.e. CommonFilesDir)"
                  		key_name="RegistryPath(i.e.Software\Wow6432Node\Microsoft\Windows\
                  		CurrentVersion)"custom_attribute_name="AttributeName"/>
                  		<reg_value value_name="Keyname ..." key_name="Path\...."
                  		custom_attribute_name="AttributeName2"/>
                  	</characteristic>
                  </wap-provisioningdoc>
                  
                  
                  
                  
               

It must be in the previous format for the XML file to get correctly parsed and the registry settings to be outputted to a key value pair that can be exported back to the AirWatch Console. In this example, the registry key path is “HKEY_LOCAL_MACHINE\Ident” for two of the values and within that key path it is reading the values of “Username” and “OrigName”. The ‘custom_attribute_name’ parameter is simply the name of the custom attribute that displays in the console and corresponds to the value read from the device.