How to 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 the device itself.

There are many use cases for this option:

  1. 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.
  1. 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. However, In this blog post, we will see the steps for options 1 and 2, using the Intune admin center and manually from the device.

  1. Using Microsoft Intune admin center
  2. Rename a device hostname on the device itself
  3. Using Microsoft Entra admin center
  4. Using Powershell

Steps to Rename a Windows Device using Intune Admin Center

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

  • Login on Intune admin center
  • Click on Devices > All Devices
  • Search for the device you want to rename and click on it to manage.
Search for the device you want to rename and click on it
Search for the device you want to rename and click on it
  • After you click on the device, you will find information about the device, such as the device serial number, primary user, operating system, etc.
  • 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. 

Tokens can be used to add device-specific values to the name:

  • Add {{serialnumber}} to add the device’s serial number to the name
  • Add {{rand:x}} to add a random string of numbers, where x equals the number of digits to add.
Rename a device using Intune admin center - Rename device option
Rename a device using Intune admin center – Rename device option
  • In my case, please enter a new name for the device. I am simply adding additional characters to the name of my desktop [please refer to screenshot] and making sure the total number of characters is not more than 15 and device naming guidelines are followed.
  • I will select Restart after rename, as the device will not be renamed without restarting. You can select No to skip device restart after the rename operation, and at a later point, you can manually restart the device yourself.
Rename device and Restart option on Intune admin center
Rename device and Restart the option on Intune admin center
  • As you can see from below screenshot, A notification appears on the portal which confirms that a restart has been initiated.
Restart of device Initiated via Intune admin center
Restart of device Initiated via Intune admin center

Sync Intune Policies

The device check-in process might not begin immediately. If you’re testing this policy on a test device, you can manually kickstart the Intune sync from the device itself or remotely through the Intune admin center.

Alternatively, you can use PowerShell to force the Intune sync on Windows devices. Restarting the device is another way to trigger the Intune device check-in process.

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
  • After the device is rebooted, you can log in and use the below steps to check if the device hostname has been updated.
    • 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

Steps to rename a Windows device manually

Use the steps below to rename a Windows device manually.

  • 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 should be automatically updated on Microsoft Entra ID and Intune admin center.

Conclusion

In this blog post, we have seen how to rename a device using the Intune admin center. Renaming a device via Intune remotely is a useful feature that will help IT administrators. There is no requirement for Powershell scripts or any complex procedure to rename a device. The Rename option provided for Device management does the job for you.

Leave a Comment