Azure Intune device property management

Dakota Sherman 45 Reputation points
2023-10-18T15:07:44.18+00:00

Hello everyone,

I have been struggling through this a bit but hopefully one of you can help. I am new to Azure, 2 weeks experience, so I apologize if my question seems rudimentary.

I am trying to take the list of devices we have in Intune (downloaded into a CSV) and change the information in the "Management Name" field to some unique identifiers that we determine, preferably with Powershell as we have several hundred devices and counting.

Example of what I'm referring to: a device has the management name johnsmith_Windows_1/1/1999_12:00 AM but we want to switch it to ABCD_serialnumber.

Each current and future name is unique. How can this be accomplished?

I have had success connecting to Azure and changing some attributes based on the ObjectID as a test but those were individual devices and none of the parameters available allow manipulation of the Management Name. Is there a module that I need? I installed AzAccounts and AzureAD but I may have missed an important module still. Many thanks for any help I receive.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,775 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,419 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,733 questions
{count} votes

Accepted answer
  1. Crystal-MSFT 50,886 Reputation points Microsoft Vendor
    2023-10-19T02:01:39.0766667+00:00

    @Dakota Sherman, Thanks for posting in Q&A. To change Intune device "Management Name" field, we can use "Update-IntuneManagedDevice". Here are the steps I test in my lab for your reference:

    1. Export the device information from Intune portal and keep the devices I want to change and rename it as devices.csv
    2. Run the following script to change the device "Management Name"
    Connect-MsGraph
    
    # Read in CSV file of device information
    $devices = Import-Csv -Path "C:\test\devices.csv"
    
    # Loop through each device and set the DisplayName property
    foreach ($device in $devices) {
        $deviceId = $device.'Device ID'
        $newDisplayName = "ABCD_" + $device.'Serial number'
        Update-IntuneManagedDevice -managedDeviceId $deviceId -managedDeviceName $newDisplayName
      }
    

    User's image

    3, Enter the global administrator account to access Intune graph.

    4, After the script run, check in Intune portal and find it is changed.

    User's image

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.