Device name lost after reset

  • Devices enrolled via Automated Device Enrollment (ADE, DEP in the portal) lose the previously assigned device name in the device inventory after reset.
  • An export of the CSV file from Devices → Inventory cannot be imported at Devices → Auto Enrollments and vice versa.

Cause

  • When re-enrolled, the device receives the name from Auto Enrollments, not the name subsequently changed in the device inventory. If Use default device name from DEP profile is enabled for the auto enrollment, the device receives the default device name from the DEP profile instead, provided one is set there.
  • The format of the exported CSV file is different from the format of the imported CSV file and contains different fields.

Solution

The CSV file with the desired device names is exported from the Inventory, and the data is transferred to the template format of the CSV file to be imported at Auto Enrollments.

CSV file templates can be downloaded for Auto Enrollments and Inventory. This provides the correct format template for the name changes in each case. The template for Auto Enrollments contains the columns serialNumber (required), name, userEmail, depProfile and enrollToOrganizationUuid as well as enabled custom fields. Columns left empty are not applied during import, so serialNumber and name are sufficient for the name change.

The first line of the format template is required and should not be changed.

The serial number and device name are copied from the exported data and then imported at Auto Enrollments. When devices are enrolled again, the correct device name is now used during auto enrollment.

The imported device name is only used if Use default device name from DEP profile is disabled for the affected auto enrollments or no default device name is set in the DEP profile. The CSV import does not change this option.

No import is needed for individual devices: the device name can be changed directly in the details of the auto enrollment in the Device name field. Alternatively, the Use user name as device name action sets the name of the assigned user as the device name of the selected auto enrollments.


Instruction

  1. At Devices → Inventory, the columns for device name and serial number are displayed. The list is then exported via the context menu with Export view as CSV. Only the displayed columns are exported.
  2. At Devices → Auto Enrollments, the Update via CSV action in the context menu opens the Update via CSV dialog. There, the format template is downloaded via the template link. The Upload Knox file action is not meant here.
  3. The serial number and device name from the export are transferred to the serialNumber and name columns of the template. The example line of the template is replaced, and the remaining columns stay empty. The header line remains unchanged.
  4. The filled file is uploaded in the same dialog, selecting the CSV separator used. After checking the preview, the import is started.

How helpful was this article?