Forum Discussion
dannytveria
May 05, 2021Brass Contributor
Remove licenses from users office 365
Hi, I trying with no success to remove licenses from users. I tried script from Microsoft docs but it`s not working. I created txt file with the user upn. after I runned the script I gettin...
Bestia1
May 06, 2021Copper Contributor
I had the same problem during a long time
- SchnittlauchMay 06, 2021Steel Contributorhow u solved it?
- dannytveriaMay 11, 2021Brass ContributorI used the same script but change some arguments:
Connect-AzureAD
Connect-MsolService
[string[]]$x=Get-Content "D:\Logs\O365\Students with all licesnse\Bulk\Remove license test.txt"
for ($i=0; $i -lt $x.Count; $i++)
{
Set-MsolUserLicense -UserPrincipalName $x[$i] -RemoveLicenses "License SKU"
}- SchnittlauchMay 11, 2021Steel ContributorGood job dannytveria!
Is it working? If yes than close the topic, for upcomming people with the same problem. 🙂