PowerShell Set-MSolUserLicense


I am trying to unassign a bulk of user's licenses from our Office365.



I have all of the user's UserPrincipalName on a CSV file like so:



That is what I tried to do:



When I had only one user on the CSV file, it works!
But when I try to add more users to the exact file and in the exact same list, the command fails and give me this error:



I doubled checked and made sure the it is indeed the correct license (domain:StandartPack)



What else can I do? How can I make it work?



You need to iterate each line in the csv at a time, at the moment you work with all of them at once, so try this:



**EDIT:



Try the following method as well (update if necessary)



You will need to iterate through all of the licenses assigned and find the one you are looking to remove.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

The Dalles, Oregon

眉山市

清晰法令