Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

New-VBRProtectionGroupScheduleOptions

Short Description

Creates a discovery schedule.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus

Requires Veeam Agent for Microsoft Windows/Veeam Agent for Linux 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 periodically schedule.

Specifies periodically 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.

PS C:\PS> $daily = New-VBRDailyOptions -DayofWeek Friday -Period 17:00

PS C:\PS> 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:

PS C:\PS> $daily = New-VBRDailyOptions -DayOfWeek Friday -Period 17:00

PS C:\PS> $schedule = New-VBRProtectionGroupScheduleOptions -PolicyType Daily -DailyOptions $pdaily

PS C:\PS> $group = Get-VBRProtectionGroup -Name "North Computers"

PS C:\PS> Set-VBRProtectionGroup -ProtectionGroup $group -ScheduleOptions $schedule

Related Commands

New-VBRPeriodicallyOptions

New-VBRDailyOptions

Get-VBRProtectionGroup

Set-VBRProtectionGroup

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation