Kevin Dunford
Kevin Dunford

Reputation: 1

Microsoft Intune - change device name doesnt update device registry

Changed device name in October 2024, so device has synced updated and rebooted many times. There are still many locations in registry still referring to old device name. The device still works however the only issue im having an issue with is I'm unable to remote desktop to the device! At the screen where you allow the remote desktop connection it refers to the devices original name and not the new name, then the RDP drops.

Are any of the following registry locations safe to edit, to the new device name?

{device name} The original device name {new device name} There is one registry item with both old and new device name

` HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\AutopilotPolicy CloudAssignedDeviceNameLastProcessed REG_SZ {device name}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\AutopilotPolicyCache
PolicyJsonCache    REG_SZ    There is alot of information here about Autopilot, which I've removed, however it also has the {device name}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\Diagnostics\AutoPilot
CloudAssignedDeviceName    REG_SZ    {device name}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows      NT\CurrentVersion\Print\PrinterMigrationEx\OneNote (Desktop)\DsSpooler
serverName    REG_SZ    {device name}
shortServerName    REG_SZ    {device name}
uNCName    REG_SZ    \\{device name}\OneNote (Desktop)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows     NT\CurrentVersion\Print\Printers\Microsoft Print to PDF\DsSpooler
url    REG_SZ    http://{device name}/

   HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\AdventNet\DesktopCentral\DCAgent\SystemDetails
OldMachineName    REG_SZ    {device name}

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Print\PrinterMigrationEx\OneNote (Desktop)\DsSpooler
serverName    REG_SZ    {device name}
shortServerName    REG_SZ    {device name}
uNCName    REG_SZ    \\{device name}\OneNote (Desktop)

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Print\Printers\Microsoft Print to PDF\DsSpooler
url    REG_SZ    http://{device name}/

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CloudDomainJoin\JoinInfo\****
DeviceDisplayName    REG_SZ    {device name}
DnsFullyQualifiedName    REG_SZ    {device name}

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Microsoft Print to PDF\DsSpooler url REG_SZ http://{device name}/

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\State
LastComputerName    REG_SZ    {device name}

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CloudDomainJoin\JoinInfo\****

DeviceDisplayName    REG_SZ    {device name}
DnsFullyQualifiedName    REG_SZ    {device name}

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Microsoft Print to PDF\DsSpooler
url    REG_SZ    http://{device name}/

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\State
LastComputerName    REG_SZ    {device name}

End of search: 20 match(es) found.

HKEY_CURRENT_USER\Software\Microsoft\OneDrive
HostNameCollection    REG_SZ    {device name}:{new device name}

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\WorkplaceJoin\JoinInfo\****
DeviceDisplayName    REG_SZ    {device name}

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\WorkplaceJoin\JoinInfo\

DeviceDisplayName    REG_SZ    {device name}

End of search: 3 match(es) found. `

Havent changed anything yet, as I'm unsure if changing these regisitry values will brake the connection between the device and Autopilot (Intune).

Upvotes: 0

Views: 35

Answers (1)

Prathista Ilango
Prathista Ilango

Reputation: 1

Could you give more details about this device - like hybrid or AAD joined? While the entries of Intune locations with old name here seems to be concerning, I still feel we need to look at DNS if it is hybrid or if there are any duplicate entries (with old name and new name) from the Intune/Entra portal that needs cleanup. You can try reenrolling the device, rather than directly cleaning from registry.

Hope that helps!

Upvotes: 0

Related Questions