New-VBRProtectionGroupScheduleOptions

In this article

    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
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    PolicyType

    Specifies the type of the discovery schedule:

    • Daily
    • Periodically

    The cmdlet will create the discovery schedule of this type.

    False

    Named

    True (ByValue,
    ByProperty
    Name)

    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
    Name)

    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
    Name)

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    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:

    1. Create an object with daily schedule settings. To do this, run New-VBRDailyOptions. Save the result to the $daily variable.
    2. 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:

    1. Create an object with daily schedule settings. To do this, run New-VBRDailyOptions. Save the result to the $daily variable.
    2. Create a discovery schedule with daily settings. To do this, run New-VBRProtectionGroupScheduleOptions with the $daily variable. Save the result to the $schedule variable.
    3. Apply the discovery schedule to a protection group. To do this, perform the following steps:

    $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

    New-VBRPeriodicallyOptions

    New-VBRDailyOptions

    Get-VBRProtectionGroup

    Set-VBRProtectionGroup