New-VBRProtectionGroupScheduleOptions
Short Description
Creates a discovery schedule.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
New-VBRProtectionGroupScheduleOptions [-PolicyType <VBRProtectionGroupPolicyType> {Daily | Periodically}] [-DailyOptions <VBRDailyOptions>] [-PeriodicallyOptions <VBRPeriodicallyOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRProtectionGroupScheduleOptions object representing a discovery schedule for a protection group. Per this schedule, Veeam Backup & Replication performs a discovery operation: connects to computers of a selected protection group and gathers information about them. After the discovery operation is complete, processed computers are recognized by Veeam Backup & Replication as discovered.
To apply a discovery schedule to a protection group, run Set-VBRProtectionGroup.
To discover computers manually, run Rescan-VBREntity.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
PolicyType | Specifies the type of the discovery schedule:
The cmdlet will create the discovery schedule of this type. | False | Named | True (ByValue, | False |
DailyOptions | For daily schedule. Specifies daily schedule settings. The cmdlet will create the discovery schedule with these settings. Accepts VBRDailyOptions type. | False | Named | True (ByProperty | False |
PeriodicallyOptions | For periodical schedule. Specifies periodical schedule settings. The cmdlet will create the discovery schedule with these settings. Accepts VBRPeriodicallyOptions type. | False | Named | True (ByProperty | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
VBRProtectionGroupScheduleOptions
Example 1
This example shows how to create a discovery schedule for a protection group.
Per this schedule, Veeam Backup & Replication will perform discovery operations every Friday at 5 PM.
You will need to perform the following steps:
- Create an object with daily schedule settings. To do this, run New-VBRDailyOptions. Save the result to the $daily variable.
- Create a discovery schedule for a protection group. To do this, run New-VBRProtectionGroupScheduleOptions with the $daily variable.
$daily = New-VBRDailyOptions -DayofWeek Friday -Period 17:00 New-VBRProtectionGroupScheduleOptions -PolicyType Daily -DailyOptions $daily |
Example 2
This example shows how to apply a discovery schedule to a protection group.
Per this schedule, Veeam Backup & Replication will perform discovery operations every Friday at 5 PM.
You will need to perform the following steps:
- Create an object with daily schedule settings. To do this, run New-VBRDailyOptions. Save the result to the $daily variable.
- Create a discovery schedule with daily settings. To do this, run New-VBRProtectionGroupScheduleOptions with the $daily variable. Save the result to the $schedule variable.
- Apply the discovery schedule to a protection group. To do this, perform the following steps:
- Run Get-VBRProtectionGroup to get a protection group to which you want to apply the discovery schedule. Save the result to the $group variable.
- Run Set-VBRProtectionGroup with the $group and $schedule variables.
$daily = New-VBRDailyOptions -DayOfWeek Friday -Period 17:00 $schedule = New-VBRProtectionGroupScheduleOptions -PolicyType Daily -DailyOptions $pdaily $group = Get-VBRProtectionGroup -Name "North Computers" Set-VBRProtectionGroup -ProtectionGroup $group -ScheduleOptions $schedule |
Related Commands