Forum Discussion

nhtkid's avatar
nhtkid
Iron Contributor
Aug 16, 2023

Device group to include Intune device only

Hi,

When we create a dynamic device group in Intune, it is indeed a AAD group.

It often includes devices that are already deleted from Intune, but still exist in AAD.

 

What attribute can I use to include only the devices that exist in Intune?

 

I have tried (device.managementType -eq "MDM"), that doesn't seem to work.

The other alternative is to use filters, which is specifically designed with Intune device attributes.

 

I just want nice looking AAD groups that include Intune devices.

 

Any suggestions?

Thanks

Resources