Renaming Windows Devices in Intune

This blog post is around creating a naming convention for your Windows devices in Intune. As you are probably aware when enrolling new devices through autopilot you can now use a naming convention. This works great for new devices but does not cater for existing devices which you already have in Intune.

image

Renaming Existing Devices

In order to rename existing devices we can create a custom profile in Intune which uses the Accounts CSP. The first step is to login to Intune and navigate to Device Configuration > Profiles > Create a new profile.

  • Platform > Windows 10 and Later
  • Profile Type > Custom
  • Choose Settings

Add a new OMA-URI setting and specify the following

  • Name it something relevant
  • OMA-URI – ./Device/Vendor/MSFT/Accounts/Domain/ComputerName
  • Data type – String
  • Enter the string value of the naming convention you would like to use.

image

Now assign the custom profile to the group of your choice

image

Once the device checks in the Computer rename will occur. Note: The Device must reboot for the new name to take effect.

BEFORE

image

image

AFTER

image

References: https://docs.microsoft.com/en-us/windows/client-management/mdm/accounts-csp

Jake Stoker

Jake Stoker

Enteprise Mobility + Security SME