Removing unwanted Veeam License using Veeam Powershell module.
Remove specific users. make sure it works properly before running the script. Please note that as per veeam if the user has a content allocated it will not get removed. test more before running it.
Make sure you have complete knowledge of the subject before using it. In our case user assigned licensed to all without having enough licenses so we had to run this to remove over-provisioned licenses.
Removing Single user –
$b = Get-VBOLicensedUser -Organization $org -Name username@localhost Remove-VBOLicensedUser -User $b
Removing all user licenses –
$org = Get-VBOOrganization $all = Get-VBOLicensedUser -Organization $org foreach ($a in $all) { $b = Get-VBOLicensedUser -Organization $org -Name $a.username Remove-VBOLicensedUser -User $b }
Thank you for the detailed explanation.
Thank you Satheshwaran for the amazing script.
You are most welcome!