Forum Discussion
Solu662125
Mar 29, 2022Copper Contributor
Add multiple devices to an existing device group in MEM
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!
3 Replies
- aexlzBrass ContributorI 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. - Knut BethgeCopper Contributor...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.- LK-Reno0225Copper Contributor
Good morning. Using the Entra Object ID, I am attempting to bulk-import members into a group. I can import them individually, using the correct Entra ID, however, when I try to bulk import them, using the Entra IDs, in the correct format for the group/bulk importing template, it fails. I have successfully imported in bulk before using the similar and correct process but now it will not allow me to. Any suggestions? My headers are all correct and my Entra Object ID are also.