Microsoft Endpoint Administrator — Question 246
You have a Microsoft 365 E5 subscription.
You need to create a dynamic device group that will contain any device that has the word Marketing in its name.
Which device membership rule should you use?
Answer options
- A. (device.displayName -in "Marketing")
- B. (device.displayName -in "*Marketing*")
- C. (device.displayName -contains "Marketing")
- D. (device.displayName -contains "*Marketing*")
Correct answer: C
Explanation
The correct answer is C because the '-contains' operator checks if the specified string is present within the display name of the device, fitting the requirement of identifying devices with 'Marketing' in their names. Options A and B incorrectly use the '-in' operator, which is not suitable for substring searches, while option D adds unnecessary wildcards that are not needed for this specific condition.