Just the other day I wrote a blog post on how you could use Azure AD v2 Power Shell and Dynamic Groups based on extension attributes to set EMS license plans for your cloud and on-premises users, https://gotoguy.blog/2017/02/17/assign-ems-license-with-azure-ad-v2-powershell-and-dynamic-groups/.And now, User and Group based licensing in the Azure AD Portal has been added in Preview!If you are having problems with collections taking a long time to refresh membership, it is very possible that you have incremental updates or collection membership evaluation schedule set of happen frequently on a large number of collections.So now you have 1600 collections set at incremental updates, what do you do?When you look at the client it's referring to, it shows the status as having been sent, and no status of restarting pending is shown in the registry (client was restarted anyway).Re-running the summarization and refreshing has not worked over a period of hours.In this script it does not change the Membership Evaluation for the default collection or "*All Systems" since I need those to stay incremental.
that will take days, so I slapped together a powershell script to do it for you.
Let’s configure Licensed Groups: Click Assign to add a group to License, I will use my Dynamic Group: Then, at Assignment options, I can optionally configure individual services: After clicking OK and Assign, the group has been added for processing: And if I look at Licensed Users again after the change has been processed, I will see that uses now have an inherited license based on the group.
Of course, the Direct assignments added by Power Shell are not removed, so I will have to remove those later.
Using reports/ collections, cleanup lot of old records ,fix SCCM client issues using scripts and clients are now at good success rate (95% ,for some reason, Software update scan is lower than 80% and that causes the SUP compliance failed to meet the SLA.
I started running the following SQL Query on SSMS (SQL Server Management Studio) to see how many computers are succeeded with software update scan and how many are not.