Starting with Windows 10, version 1803, the device name is no longer collected by default and requires a separate opt-in.

It shows in Windows Analytics Upgrade Readiness that the computer does not have a name after upgrading to Windows 10 1803.

Windows Analytics - Device names - 01

The way to fix it with Intune is to deploy a PowerShell Script that sets the value that allows to computername to be uploaded to Windows Analytics again.

############################################################################################

###################################################################################################
$registryPath = "HKLM:\Software\Policies\Microsoft\Windows\DataCollection"

#Enable AllowDeviceNameInTelemetry
$Name = "AllowDeviceNameInTelemetry"
$value = "1"
IF(!(Test-Path $registryPath))
{
New-Item -Path $registryPath -Force | Out-Null
New-ItemProperty -Path $registryPath -Name $name -Value $value `
-PropertyType String -Force | Out-Null}
ELSE {
New-ItemProperty -Path $registryPath -Name $name -Value $value `
-PropertyType String -Force | Out-Null}



In Intune – create a new PowerShell Script:

    1. Windows Analytics enable device name

 

  • Upload the script

 

 

Ensure that the script is running in system context Windows Analytics - Device names - 02 After the script is applied to the device HKLM\Software\Microsoft\Windows\DataCollection\AllowDeviceNameInTelemetry is set to 1 Windows Analytics - Device names - 03


Read more at: Frequently asked questions and troubleshooting Windows Analytics Enrolling devices in Windows Analytics