Share via

How do you enforce consistent naming with Autopilot when it doesn’t always stick?

Veil Doken 0 Reputation points
2026-05-06T07:03:14.39+00:00

We use a %SERIAL% naming convention in our Autopilot profile. Most devices come out as 'LAPTOP-12345,' but then we get these rebels named 'DESKTOP-ABCDE.' It breaks our asset management and our sanity. It’s like the naming policy arrives too late to the party. How do you ensure every device follows the rules from the first boot?

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Most helpful
  1. Harry Phan 18,840 Reputation points Independent Advisor
    2026-05-06T08:17:17.1433333+00:00

    Hello Veil,

    The issue comes from the fact that Autopilot naming policies are applied only after the Intune MDM profile is processed, which means the device boots with its default Windows-generated hostname first. That’s why you see “DESKTOP-ABCDE” before Intune renames it. To enforce the %SERIAL% convention from the very first boot, you need to shift the naming logic into the provisioning stage rather than relying solely on Intune. The most reliable way is to use a pre-provisioned Autopilot deployment with a configuration profile that includes the naming policy, or embed the hostname assignment in your deployment task sequence via MDT/ConfigMgr using OSDComputerName=%SERIAL% before the OS specialization phase. If you’re strictly cloud-only, the workaround is limited: Intune will always rename after enrollment, so the initial boot name will not match until the policy applies. In that case, the best practice is to accept the temporary default and ensure your asset management system waits for the Intune rename event before ingesting the device record. There is no supported method to override Windows’ initial random hostname generation prior to Autopilot enrollment.

    If the above response helps answer your question, please hit "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Harry.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.