Tech Community Live: Endpoint Manager edition
Jul 21 2022, 08:00 AM - 12:00 PM (PDT)

Add multiple devices to an existing device group in MEM

New Contributor

Hello,

Other than adding each of them manually - Is there a way I can add multiple devices to an existing group in Microsoft Endpoint Manager (Intune)? 

Looking for a PowerShell script or something.

 

Thanks!

 

2 Replies
...you can bulk import members via .csv files. This is the syntax example:

Column A
1 version:v1.0
2 Member object ID or user principal name [memberObjectIdOrUpn] Required
3 Example: 9832aad8-e4fe-496b-a604-95c6eF01ae75

So far I just imported members to an empty group, I'm not sure what happens to already existing members, but I would expect that the new members from the .csv will not delete them.
I once had a similar task. You can use this code: https://pastecode.io/s/3kf7vr0k

Make sure to enter the Object-Id of Target-Device-Group.