Dynamic groups based on device.enrollmentProfileName for WIndows 10 devices

%3CLINGO-SUB%20id%3D%22lingo-sub-1355952%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20groups%20based%20on%20device.enrollmentProfileName%20for%20WIndows%2010%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355952%22%20slang%3D%22en-US%22%3EEnrollmentProfileName%20is%20more%20for%20Android%20Dedicated%20devices.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20could%20look%20into%20devicePhysicalIDs%2C%20check%20out%20this%20website%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fenrollment%2Fenrollment-autopilot%23create-an-autopilot-device-group%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fenrollment%2Fenrollment-autopilot%23create-an-autopilot-device-group%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1355961%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20groups%20based%20on%20device.enrollmentProfileName%20for%20WIndows%2010%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355961%22%20slang%3D%22en-US%22%3EI%20could%2C%20and%20I%20am%20for%20now.%3CBR%20%2F%3EBut%20that%20doesn't%20quench%20my%20curiosity%20about%20this.%20%3A)%3C%2Fimg%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20also%20seen%20scenario's%20where%20suddenly%20the%20Autopilot%20related%20attributes%20in%20devicePhysicalIDs%20seem%20to%20have%20disappeared.%20But%20that%20is%20a%20problem%20for%20another%20time.%20Haven't%20been%20able%20to%20replicate%20that%20one.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1355963%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20groups%20based%20on%20device.enrollmentProfileName%20for%20WIndows%2010%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355963%22%20slang%3D%22en-US%22%3EHave%20you%20looked%20into%20GroupTags%3F%3CBR%20%2F%3EWhat%20they%20might%20mean%20for%20you%3F%3CBR%20%2F%3EI%20haven't%20seen%20easy%20issues%20with%20them%20disappearing.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fintune-customer-success%2Fsupport-tip-using-group-tags-to-import-devices-into-intune-with%2Fba-p%2F815336%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fintune-customer-success%2Fsupport-tip-using-group-tags-to-import-devices-into-intune-with%2Fba-p%2F815336%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1356234%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20groups%20based%20on%20device.enrollmentProfileName%20for%20WIndows%2010%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1356234%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186539%22%20target%3D%22_blank%22%3E%40Thijs%20Lecomte%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20but%20the%20grouptags%20are%20pretty%20much%20the%20devicephysicalIDs.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EU%20use%20them%20in%20dynamic%20groups%20just%20the%20same%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E(device.devicePhysicalIds%20-any%20_%20-eq%20%22%5BOrderID%5D%3ASales%22)%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20all%20that%2C%20but%20I%20want%20to%20know%20the%20answer%20to%20my%20question.%20Out%20of%20curiosity.%20You%20can%20solve%20my%20problem%20in%20many%20different%20ways.%20But%20my%20curiosity%20is%20only%20solved%20with%20knowledge.%20%3AD%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1355946%22%20slang%3D%22en-US%22%3EDynamic%20groups%20based%20on%20device.enrollmentProfileName%20for%20WIndows%2010%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355946%22%20slang%3D%22en-US%22%3E%3CP%3EDidn't%20really%20find%20an%20answer%20to%20this%20and%20getting%20a%20proper%20answer%20from%20support%20seemed%20hard%20because%20the%20functionality%20spans%20multiple%20teams.%20So%20here%20it%20goes.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20I%20read%20in%20the%20dynamic%20group%20documentation%20(%3CA%20title%3D%22Docs%20Page%20-%20Device%20Rules%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fusers-groups-roles%2Fgroups-dynamic-membership%23rules-for-devices%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EDocs%20Page%20-%20Device%20Rules%3C%2FA%3E)%20the%20%22%3CSPAN%3Edevice.enrollmentProfileName%22%20would%20allow%20me%20to%20create%20dynamic%20groups%20of%20Win10%20devices%20based%20on%20their%20assigned%20autopilot%20profile.%20I%20was%20getting%20mixed%20results%20when%20I%20was%20trying%2Ftesting%20this%20however.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20I%20could%20establish%20so%20far%20is%20that%20it%20seems%20this%20value%20for%20the%20device%20is%20set%20as%20it's%20getting%20deployed%20with%20the%20profile%20or%20getting%20enrolled%20in%20Intune.%20And%20if%20you%20later%20reassign%20the%20device%20to%20a%20different%20Autopilot%20profile%20the%20value%20is%20not%20changed%20until%20you%20restage%20or%20re-enroll%20the%20device.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI'ld%20like%20to%20have%20some%20confirmation%20that%20this%20is%20actually%20correct%20and%20if%20it%20is%20at%20Autopilot%20deployment%20only%20or%20also%20when%20re-enrolling%20the%20device%20in%20intune.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20an%20extra%20it%20would%20be%20nice%20to%20export%20this%20value%20for%20all%20devices%2C%20but%20so%20far%20saw%20no%20reference%20to%20this%20attribute%20when%20polling%20devices%20with%20PowerShell%20or%20the%20MSGraph.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWho%20could%20clarify%20this%20a%20little%20bit%20for%20me%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1355946%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1929691%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20groups%20based%20on%20device.enrollmentProfileName%20for%20WIndows%2010%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1929691%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F463705%22%20target%3D%22_blank%22%3E%40ShellBlazer%3C%2FA%3E%26nbsp%3BI'm%20curious%20about%20this%20too.%20Were%20you%20ever%20able%20to%20find%20a%20solution%20for%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Didn't really find an answer to this and getting a proper answer from support seemed hard because the functionality spans multiple teams. So here it goes. 

 

As I read in the dynamic group documentation (Docs Page - Device Rules) the "device.enrollmentProfileName" would allow me to create dynamic groups of Win10 devices based on their assigned autopilot profile. I was getting mixed results when I was trying/testing this however. 

 

What I could establish so far is that it seems this value for the device is set as it's getting deployed with the profile or getting enrolled in Intune. And if you later reassign the device to a different Autopilot profile the value is not changed until you restage or re-enroll the device. 

 

I'ld like to have some confirmation that this is actually correct and if it is at Autopilot deployment only or also when re-enrolling the device in intune. 

 

As an extra it would be nice to export this value for all devices, but so far saw no reference to this attribute when polling devices with PowerShell or the MSGraph. 

 

Who could clarify this a little bit for me? 

5 Replies
EnrollmentProfileName is more for Android Dedicated devices.

You could look into devicePhysicalIDs, check out this website: https://docs.microsoft.com/en-us/mem/intune/enrollment/enrollment-autopilot#create-an-autopilot-devi...
I could, and I am for now.
But that doesn't quench my curiosity about this. :)

I've also seen scenario's where suddenly the Autopilot related attributes in devicePhysicalIDs seem to have disappeared. But that is a problem for another time. Haven't been able to replicate that one.
Have you looked into GroupTags?
What they might mean for you?
I haven't seen easy issues with them disappearing.
https://techcommunity.microsoft.com/t5/intune-customer-success/support-tip-using-group-tags-to-impor...

@Thijs Lecomte 

 

Yes, but the grouptags are pretty much the devicephysicalIDs. 

 

U use them in dynamic groups just the same: 

(device.devicePhysicalIds -any _ -eq "[OrderID]:Sales") 

 

I know all that, but I want to know the answer to my question. Out of curiosity. You can solve my problem in many different ways. But my curiosity is only solved with knowledge. :D

@ShellBlazer I'm curious about this too. Were you ever able to find a solution for this?