Veeam backup for Microsoft O365 remove unused user date & license

$org = Get-VBOOrganization -Name “xxx.onmicrosoft.com”
$User1 = Get-VBOLicensedUser -Organization $org -Name “myname@domain.com”
$User1

$repository = Get-VBORepository -Name “xxx Backup Repository”
$user = Get-VBOEntityData -Type User -Repository $repository -Name “myname@domain.com”
Remove-VBOEntityData -Repository $repository -User $user -Mailbox -ArchiveMailbox -OneDrive -Sites
#Y will accept the deleting of data

$org = Get-VBOOrganization -Name “xxx.onmicrosoft.com”
$licensedUser = Get-VBOLicensedUser -Organization $org -Name “myname@domain.com”
Remove-VBOLicensedUser -User $licensedUser

發佈留言

*