question

AaronMcLaughlin-6625 avatar image
0 Votes"
AaronMcLaughlin-6625 asked JoeMellin-MSFT edited

Azure Devices Auto Naming

I originally posted this in Intune as I thought it might have been an Autopilot issue, but our issue happens before we ever get to Intune and it was suggested that I also post this in the Azure area.

We use Azure AD with Intune to manage our student devices. We also use SCCM to image. What is happening is that even though during the SCCM image process we specify the computer name, but after logging in for the first time it is renaming the computer to something else.

The steps we follow are:

  1. Image the device using SCCM. There is a task sequence that joins the device to Azure AD. However, there is nothing in that task that names the computer. Even if we manually specify the name during the image process, it doesn't stick.

  2. We login as a student, this is supposed to enroll them into Intune and add the device to Autopilot with the following profile settings:

57872-autopilot.png



What is happening is instead of it naming the computers using the %SERIAL%, it is naming them 2018-%SERIAL% and I can't for the life of me find where it is getting that naming from??

I have tried deleting the computer from Autopilot, Intune, and Azure, then reimaging the computer, but it still comes back with the wrong name??

Any suggestions or logs I can look for that might lead me to the culprit??


Thanks

mem-intune-enrollment
autopilot.png (17.3 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

There is a task sequence that joins the device to Azure AD.

How exactly are you doing this? Are you using a .json file and injecting that into the system during the TS?


0 Votes 0 ·

I will need to ask our SCCM team. I am not exactly sure how. Will post an update once I talk to them today.


Thanks

0 Votes 0 ·
NickHogarth-MVP avatar image
0 Votes"
NickHogarth-MVP answered

How are you using the task sequence to join the device to Azure AD? That is what Autopilot should do based on your Autopilot profile.

Are you using an Autopilot for existing devices type of task sequence that uses the JSON, or is the device already registered in Autopilot? I would just use a Task Sequence that gets the device to the OOBE, then depending if you use the JSON or if the device is registered in Autopilot already, the device will join Azure AD based on your Autopilot profile after the user enters their credentials. You could also just test this using a vanilla version of Windows 10 on a USB key and reimage the device and see if it picks up the wrong computer name.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AaronMcLaughlin-6625 avatar image
0 Votes"
AaronMcLaughlin-6625 answered

Disclaimer, we are fairly new to using Intune.

The thought was with a new device out of the box use SCCM to image and add it to Azure AD. During the initial OOBE a person would login using their credentials would enroll the device into Intune, and with the user assigned to the student autopilot profile would take the setting of Convert all targeted devices to autopilot and add it to Autopilot. Maybe I am just confused on that setting and it doesn't work that way.

However, before it ever gets to Intune, once a student logs into the computer for the first time and it gets to Windows it has already been renamed. That is where I am lost. I don't know what is renaming it. I have searched the computer for any JSON files that might have that in it, as well as, I have looked at the SCCM logs and can see where it does name it correctly based on what we specify during the image process and completes. It is after that where the renaming takes place.

Once I am in Windows, I can look at Azure AD devices and see the renamed computer in all Devices, but see that it is not in Intune or Autopilot devices.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AaronMcLaughlin-6625 avatar image
0 Votes"
AaronMcLaughlin-6625 answered

Some additional information.

So after logging in as a test user, here are pictures of what I am seeing in both Azure and Autopilot devices

Azure:

57942-azure.png


Autopilot:

57912-autopilot.png




Why the discrepancy between Azure and Intune?? Where is Azure getting that name from?


azure.png (12.3 KiB)
autopilot.png (10.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.