For more information, see Delete and restore user accounts with PowerShell. Set-MsolUserLicense -UserPrincipalName $userArray.UserPrincipalName -RemoveLicenses $Īnother way to free up a license is by deleting the user account. $userArray = Get-MsolUser -All | where įor ($i=0 $i -lt $userArray.Count $i++)
Set-AzureADUserLicense -ObjectId $userUPN -AssignedLicenses $license
$License.RemoveLicenses = (Get-AzureADSubscribedSku | Where-Object -Property SkuPartNumber -Value $planName -EQ).SkuID Fpse emulator for android Are you not sufficiently entertained by FPS for Android 11,211 (FULL) APK Entertainment Apps 2021 Then it may be the time to follow other web applications that specialize in creating content that is a bit of imagination, but it can seem well of everyone and a variety. $license = New-Object -TypeName .AssignedLicenses Next, get the sign-in name of the account for which you want remove a license, also known as the user principal name (UPN).įinally, specify the user sign-in and license plan names, remove the "" characters, and run these commands. Get-AzureADSubscribedSku | Select SkuPartNumber Next, list the license plans for your tenant with this command. Use the Azure Active Directory PowerShell for Graph moduleįirst, connect to your Microsoft 365 tenant. For a list of additional resources, see Manage users and groups.
Learn how to remove licenses from user accounts with the Microsoft 365 admin center.