Is Apple's Device Enrollment Program (DEP) tied into the OSX Installer, Hard Drive or Machine?
DEP follows the machine, not the installer or drive.
Apple doesn’t have a neat article for this like it does for iPhone or Apple Watch.
- https://support.apple.com/en-us/HT201365
- https://support.apple.com/en-us/HT208855