Rename a Windows Device Using Intune

You can easily rename Windows devices remotely using the Intune admin center. When you do this, the device name will change in Intune, Microsoft Entra ID, and on the device itself.

  • There are many use cases for this option:
    • For example, you use an Autopilot deployment profile to configure device hostnames based on a specific template. After you have deployed devices via Autopilot, you can rename them if you want.
    • If your organization has special devices for specific purposes, like Processing Batch Jobs or Running Specific Applications, and you want to reflect this in their names, you can rename them via Intune.

As of now you can rename following type of devices using Intune admin center:

  • Android Enterprise:
    • Corporate-owned work profiles
    • Dedicated devices
    • Fully managed
  • iOS/iPadOS supervised devices with iOS 9.3 and later
  • macOS 10 – Corporate-owned devices
  • Windows – Corporate-owned devices
  • Corporate-owned co-managed devices that are Azure AD joined.
Source: Microsoft

There are several ways to rename a Windows device. Let’s explore the different options:

  1. Using Microsoft Intune Admin Center.
  2. Renaming the device directly on the device itself.
  3. Using Company portal website.
  4. Using Microsoft Entra Admin Center.
  5. Using PowerShell.

1. Rename a Windows Device from Intune Admin Center

Please follow the below steps to rename a Windows device from Intune admin center.

  • Sign into the Intune admin center.
  • Click on Devices > All Devices
  • Search for the device you want to rename and click on it.
Search for the device you want to rename and click on it
Search for the device you want to rename and click on it
  • You can click on the three dots on the right [please refer to the screenshot below] and then select Rename device to Rename this device. Make sure that the number of characters should be 15 or less. There are other guidelines when naming a Windows device, which are listed below:

Device Rename guidelines:

  • 15 characters or less
  • Letters (a-z, A-Z), numbers (0-9), and hyphens. Names must not contain only numbers.
  • No spaces or special characters. 
Rename a device using Intune admin center - Rename device option
Rename a device using Intune admin center – Rename device option
  • Enter new name – Provide a new computer name.
  • Restart after rename – If you select Yes, the device will automatically reboot. If you choose No, you will need to manually restart the device. Please note that the new name will not take effect until the device is restarted.
Rename device and Restart option on Intune admin center
Rename device and Restart the option on Intune admin center
  • After you click on Rename button, A notification pop-up will be generated on the Intune admin center to confirm that the Restart of the device has been Initiated.
Restart of device Initiated via Intune admin center
Restart of device Initiated via Intune admin center

End User Experience

When the device rename policy kicks in, the user will see the pop-up message below: You’re about to be signed out; Your device administrator has scheduled a reboot. This pop-up is because of the configuration when renaming the device: Restart after rename to Yes.

You're about to be signed out, Your device administrator has scheduled a reboot.
You’re about to be signed out, Your device administrator has scheduled a reboot.
  • The user will get around 2 minutes before the device will reboot.
Windows will shut down in 2 minutes pop-up message
Windows will shut down in 2 minutes pop-up message
  • Device Restarted.
Windows is restarting
Windows is restarting
  • Verify If the device has been renamed:
    • Press the Win + R key together to open the Run dialog box.
    • Type sysdm.cpl to open System Properties.
    • Check the Full computer name to make sure it’s renamed.
Device renamed using Intune complete
Device renamed using Intune complete

2. Steps to Rename a Windows device Manually

Second option is to rename a Windows device manually from the device itself. Let’s check the steps:

  • Press the Win + R key together to open the Run dialog box.
  • Type sysdm.cpl to open System Properties.
  • Click the Change button under the Computer name tab to rename a device. Follow the device renaming guidelines.
  • Restart the device to complete this change.

When you manually rename and restart a device, the new device name will be automatically updated on Microsoft Entra ID and Intune admin center.

3. Rename a Windows Device Using Company Portal Website

Third option is to rename a Windows device using Company Portal Website. Let’s take a look:

Click on Devices
Click on Devices
  • All your Intune enrolled devices will be shown on the page, Select the one you want to rename. Click on Rename and provide a new Computer name. Finally click on Rename again. Please reboot the device after this change.
Click on Rename on the Company Portal to rename the device
Click on Rename on the Company Portal to rename the device

4. Rename a Windows Device using Entra admin center

You can also rename an Intune-managed windows device using Entra admin center. Let’s check the steps:

  • Sign in to the Entra admin center.
  • On the left-hand side, Under Identity Expand Devices > All devices.
  • Click on the device you want to rename and then click on Manage.
Click on Manage to manage the Intune-managed device
Click on Manage to manage the Intune-managed device
Click on Rename device option
Click on Rename device option

5. Rename a Windows Device using Powershell

You can also rename a Windows device using Powershell commands. You can run the commands locally on the device or by deploying a powershell script from Intune admin center.

Rename a Windows computer

Rename-Computer -NewName "Cloudinfra-W-77"

Conclusion

In this blog post, we’ve explored various ways to rename an Intune-managed Windows device. The best method is using the Intune Admin Center, as it’s easy and doesn’t require direct access to the devices. However, you can choose any of the other options listed based on your needs. When renaming a device, be sure to follow the device naming guidelines mentioned in this post.

1 thought on “Rename a Windows Device Using Intune”

Leave a Comment