Find out where your device is registered
Powershell Script for AutoPilot Setup
Create AutoPilot Group

(device.devicePhysicalIDs -any (_ -contains “[ZTDID]”))
Profile
Join Devices to Group when Enrolling Into Intune
Assign the Dynamic group you created above to this

Autopilot ISO
AutoUpdate AutoPilot