Looking for a PowerShell script to remove all manually-assigned licenses


  • Now that Azure AD supports group-based license management, I'd like to remove all manually-assigned licenses from users, leaving only their group-based license assignments.

    I'm aware of some PowerShell commands that can add/remove licenses from a user, but I'm not clear on whether it's able to determine if the license assignment was manually done or inherited from a group.

    If anyone has a script or any other information for removing all manually assigned licenses, I would greatly appreciate it. Thank you!

    Monday, March 20, 2017 5:56 PM

All replies

  • We will soon document more handy PowerShell scripts that can be used with group-based licensing.

    It looks like you are in the process of migrating users from manually assigned licenses to using group licenses. Please have a look at this article outlining the steps in this process:

    You will find the following PowerShell script handy in determining users who inherit licenses but also have manually assignments. You may need to modify it to your particular scenario first:

    Monday, March 20, 2017 6:29 PM
  • Thank you, Peter! I'll check it out. :)
    Monday, March 20, 2017 7:09 PM