Scenario:
In some environments, computer name should remain the same after the reimaging of the device. This article shows how to configure Provisioning template to achieve it and use one template for existing and brand new devices.
Configuration steps:
- Create a new template or modify existing one
- Add "IF" condition to Pre-OS Installation stage of Provisioning job
- Add "Compare Variable" to "IF" condition
- Set Variable to ldDeviceID and its value to Unassigned
New devices have no DeviceID so Device Name prompter used in next step replaces "LdHostname" with the value from the Name template or Ask to provide name manually
- Add "Device Name Prompter" action
- Choose "Name Template" or "LDHostName Variable"
- Add "ELSE" condition to Pre-OS Installation stage of Provisioning job
- Add "Device Name Prompter" action
- Choose "LDHostName Variable"
Devices already existing in EPM have DeviceID assigned so Device Name prompter replaces "LdHostname" with the value from the database
How to use Conditionals in LANDESK 2016 Provisioning: https://community.ivanti.com/docs/DOC-40464