About changing device name script

San TCI 0 Reputation points
2024-10-25T00:19:13.4766667+00:00

I want to know if there is any script that change device name of Intune portal in a bulk

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Crystal-MSFT 54,201 Reputation points Microsoft External Staff
    2024-10-25T01:26:58.5766667+00:00

    @San TCI, Thanks for posting in Q&A. In Intune portal, we can bulk rename device directly, this feature uses the same rules as renaming a single device. You can try the name format like ABC-{{serialnumber}}

    User's image

    https://learn.microsoft.com/en-us/mem/intune/remote-actions/device-rename#bulk-rename-devices

    If you want to rename device via script, here is a link list the script you can refer:

    https://timmyit.com/2023/06/23/intune-rename-devices-with-powershell-and-microsoft-graph-module/

    Note: None-Microsoft link, just for the reference.

    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.


  2. Pavel yannara Mirochnitchenko 13,426 Reputation points MVP
    2024-10-27T12:51:32.3366667+00:00

  3. Per-7913 0 Reputation points
    2025-06-16T09:00:07.0433333+00:00
    Changing device name problem.
    Although the option is listed in Microsoft Learn, regarding Intune Bulk Actions, the name variable {rand:x}} causes errors (Windows, iOS and Android).
    Error = Invalid device name
    

Your answer

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