How to get Windows 10 1803 device names in Windows Analytics with Intune – Mobile-First Cloud-First
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.

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:
-
- Windows Analytics enable device name
Ensure that the script is running in system context
After the script is applied to the device HKLM\Software\Microsoft\Windows\DataCollection\AllowDeviceNameInTelemetry is set to 1 
Read more at: Frequently asked questions and troubleshooting Windows Analytics Enrolling devices in Windows Analytics