Creating A Dynamic Group for InTune Enrolled Devices

Richard Long 341 Reputation points
2024-05-07T23:22:04.8733333+00:00

Hello,

I'd like to figure out the dynamic membership rules for a group I'm trying to create. I'd like the group to include only Windows 10 and 11 devices, no servers, and I'd like it to include only devices that are enrolled in InTune. Does anyone have a custom query for that? I'm finding that Server 2016 and 2019 servers show as version 10.x and that's made it challenging.

Thanks

Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Intune Other
0 comments No comments
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 17,165 Reputation points Microsoft External Staff
    2024-05-08T02:07:21.7966667+00:00

    @Richard Long,Thanks for posting in Q&A.

    From your description, I know you want to create a dynamic group for only Intune enrolled Windows devices but exclude servers.

    For the built in Dynamic group rule, based on my checking, I find there's no attribute to distinguish windows client and server.

    https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership#rules-for-devices

    But maybe we can assign device categories to windows 10/11 devices and then create Dynamic group according the deviceCategory.

    https://learn.microsoft.com/en-us/mem/intune/enrollment/device-group-mapping

    Meanwhile, based as I know, windows serve can't enroll into Intune. If the windows devices are all enrolled into Intune, we can use device.deviceOSType -eq "Windows" and device.managementType -eq "MDM" for the dynamic group rule.

    Hope it 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.