I am newbie in VBO. Please help me to fix the below script which returns error .
Trying to remove data of specific list of users from repository to remove their licenses.
Code: Select all
$repository = Get-VBORepository -Name "Veeam Repo"
$users = Import-Csv -Path C:\scripts\users_bulk.csv
Foreach ($user in $users)
{
$user = Get-VBOEntityData -Type User -Repository $repository -Name $_.DisplayName
Remove-VBOEntityData -Repository $repository -User $user -Mailbox -ArchiveMailbox -OneDrive -Sites -confirm:$false
}
vjalalv