Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SOLVED

Device names in Azure

Copper Contributor

Hi

Having rebuilt a PC I joined the machine to Azure AD using my Office 365 account.

Looking in the Azure Admin Centre I see that the old machine, before being rebuilt, was listed and I was able to remove this.

However, the machine name automatically given to the newly rebuilt machine was also listed but this name has subsequently been renamed. Have run the Sync option on the Windows 10 Pro machine but still the old name remains in Azure. Is there a way to manually rename this to match the reality?

What should have been the best practice when building the PC in the first place?

2 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

It's possible via the AzureAD PowerShell module:

 

Get-AzureADDevice -ObjectId blabla |Set-AzureADDevice -DisplayName "new name"

 


@Vasil Michev wrote:

It's possible via the AzureAD PowerShell module:

 

Get-AzureADDevice -ObjectId blabla |Set-AzureADDevice -DisplayName "new name"


That command only changes the Display Name, not the Device Name.

1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

It's possible via the AzureAD PowerShell module:

 

Get-AzureADDevice -ObjectId blabla |Set-AzureADDevice -DisplayName "new name"

View solution in original post