In this Azure article, we will discuss the syntax and usage of the Set-AzureADDevice PowerShell command with an example of how to use this command. I will execute this command and show you the output with screenshots for your reference.
Table of Contents
Set-AzureADDevice
This is a very good PowerShell command to update the details of your device in the Azure AD.
Syntax
Find the below syntax of the Set-AzureADDevice PowerShell command.
Set-AzureADDevice -ObjectId <String> [-DisplayName <String>]
Let’s discuss an example of how to use the Set-AzureADDevice PowerShell command.
Example
You can execute the below PowerShell command to update the Display name of the device named TsInfo device to a new Display name TsInfo New device.
Set-AzureADDevice -ObjectId a34dad44-3e2f-4aff-a84b-3027bad701b4 -DisplayName 'TsInfo New device'
After executing the above command, I got the below output as expected.

To cross-check that the Display name of the device has been changed successfully, I have executed the Get-AzureADDevice PowerShell command to retrieve the device details and can able to see the Display name of the device has been changed successfully.

Similarly, you can change the DeviceObjectVersion, DeviceOSType, and all other properties. You can use the Remove-AzureADDevice PowerShell command to remove any unnecessary device in your Azure AD.
You may like following the related article:
Check out a video tutorial on the Set-AzureADDevice PowerShell command.
Final Thoughts
In this Azure PowerShell article, we discussed the syntax and usage of the Set-AzureADDevice PowerShell command with an example of how to use this command. Thanks for reading this article !!!.