Maintain control of your Microsoft 365 data
Post Reply
JWH@VO
Influencer
Posts: 14
Liked: 1 time
Joined: Mar 28, 2017 7:40 am
Full Name: jwh
Contact:

Issue selecting class/education teams to backup with powershell

Post by JWH@VO »

I recently discovered that I can no longer select all my Teams , some have a Class or education property witch gives them extended functionality. I know I should also select the SharePoint site for backup to have all the related items.

but I can now not use a PowerShell script to select those in a backup Job

part of my script:

Code: Select all

$Teams = Get-VBOOrganizationTeam -Organization $Org | Where-Object {$_.Mail -CMatch $Filter } | where-object {$_.Mail -notmatch $NFilter}

ForEach ($Team in $Teams) {

    $BackupItem = New-VBOBackupItem -Team $Team
    Add-VBOBackupItem -Job $Job -BackupItem $BackupItem
}
error:

Add-VBOBackupItem : Exception of type 'System.Exception' was thrown.
At line:6 char:5
+ Add-VBOBackupItem -Job $Job -BackupItem $BackupItem }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-VBOBackupItem], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Archiver.PowerShell.Cmdlets.Jobs.AddVBOBackupItem


Anyone know anything more about this or how this can be done another way ?

Help appreciated
kind regards
JW Heins
JWH@VO
Influencer
Posts: 14
Liked: 1 time
Joined: Mar 28, 2017 7:40 am
Full Name: jwh
Contact:

Re: Issue selecting class/education teams to backup with powershell

Post by JWH@VO »

To clarify , it is not that the PowerShell is not right. If I use this same commands on a normal team site it adds it to the backup selection , but when I use a class / education team then i get this error
Mildur
Product Manager
Posts: 11320
Liked: 3141 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Issue selecting class/education teams to backup with powershell

Post by Mildur »

Hi JJwh,

I’m not aware of any limitations when using our default cmdlets with Class/Education Teams objects.
Does it work when you explicitly select the Teams you want to add? Unfortunately, I can’t test it myself, as I don’t have access to an Education Tenant.

Code: Select all

$org = Get-VBOOrganization -Name "Your Tenant"
$team = Get-VBOOrganizationTeam -Organization $org -DisplayName "Your Educational Teams you like to add"
$backupItemTeams = New-VBOBackupItem -Team $team
$job = Get-VBOJob -Name "Backup Job Name"
Add-VBOBackupItem -Job $job -BackupItem $backupItemTeams
If the default cmdlets do not work, please open a case with our Customer Support team, as it should be investigated by our customer support. Please provide me the case number.

Thank you,
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: No registered users and 222 guests