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

Comments

No comments yet. Why don’t you start the discussion?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*