EDIT GROUP TAG AND COMPUTER NAME IN WINDOWS AUTOPILOT

Since a while we’re waiting for this change in Windows Autopilot. We can now edit and change the Group Tag and Computer Name filed within the UI or trough PowerShell. This is part of the Intune release 1911 (November 2019).

Open the Device management portal: devicemanagement.microsoft.com
Navigate to Devices – Device enrollment – Windows enrollment – Devices and select the device you like to rename. The option blade now allows you to change both entries, Device Name and Group Tag.

This is very useful for doing changes on the device or assign a different Autopilot profile. If you use dynamic groups, the device will automatically be reassigned to the new Profile as long you have a dynamic group which is queering the new Group Tag.

Also, a new PowerShell module was published by Michael Niehaus to edit and change those values. Make sure you upgrade to the latest version (at least version 3.9).

Update-Module -Name WindowsAutoPilotIntune -RequiredVersion 3.9

Use Set-AutoPilotDevice to rename the device or change the Group Tag after you have connected to MS Graph using Connect-MSGraph. Here is an example of the command:

Set-AutoPilotDevice -id 8afc147f-8893-441b-a47d-3c0f3652c1a4 -groupTag "PartnerCtrRegistered-AP" -ComputerName MasterWayne

Force a sync of the Autopilot service to see the changes or wait until the service has synced. You’re all set now. Enjoy!

2 thoughts on “EDIT GROUP TAG AND COMPUTER NAME IN WINDOWS AUTOPILOT”

  1. is there a way to do this with serial numbers pointing to a csv file? i just want to assign the devices that were imported from Dell but don’t want to look for each object id. i would like to point it to a csv with device serial numbers as i will be scanning the boxes and service tags. Thank you

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: