Forum Discussion
Automatically configure Windows Autopilot device names using a CSV File
Hello All,
Is it possible to upload a CSV file so that the enrolled device pick's up an assigned device name?
So, for example, device serial number abc123xyz with get assigned a device name of Asset001 (I will be using out own asset stickers)
I am currently just using %SERIAL% setting in the deployment profile for my test device.
Then end goal is too have the devices name match the asset sticker on the device.
Looking forward to your input.
- rahuljindal-MVPBronze ContributorNot natively, but it may be possible to do use graph api to achieve this.
I've used the Asset Tag in the bios to rename the computer to that. If you sticker the device, you could also set that same name in the bios if you have an Asset Tag option. Then you add a script to Intune which does something like this where if the computer name doesn't match a specific name, then it will be renamed without rebooting it and the computer name will become the Asset Tag name from the Bios setting after the next reboot.
if ($env:COMPUTERNAME -notmatch 'XYZ') { if (((Get-WmiObject win32_SystemEnclosure).smbiosassettag -ne $env:COMPUTERNAME)) { Rename-Computer -NewName ((Get-WmiObject win32_SystemEnclosure).smbiosassettag) } }
- UpNorthIntuneIron ContributorHi Harm
Many thanks for your reply.
I will test out your script over the next few days.- Any update?