Hi @Sharon01
Thank you for reaching out to the community forum!
If the device has already been joined in Microsoft Entra ID you can refer the below article for Intune auto-enrollment is to use a provisioning package: Bulk join a Windows device to Azure AD and Microsoft Endpoint Manager using a provisioning package
you can use a PowerShell script to enroll the devices. There isn't an official sample available for this but there are some examples of this online, like this one
Let me know if this helps and if you have additional questions.
Additional resources:
How to enroll existing Azure AD joined devices to Intune.
Hope this helps. Do let us know if you any further queries.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.