Get-VBRProtectionGroup
Short Description
Returns protection groups.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Get all protection groups.
Get-VBRProtectionGroup [<CommonParameters>] |
- Get protection groups by ID.
Get-VBRProtectionGroup [-Id <guid[]>] [<CommonParameters>] |
- Get protection groups by name.
Get-VBRProtectionGroup [-Name <string[]>] [<CommonParameters>]>] |
- Get protection groups by type (Custom/ManuallyAdded).
Get-VBRProtectionGroup [-Type <VBRProtectionGroupType[]> {Custom | ManuallyAdded}] [<CommonParameters>] |
- Get protection groups by protection scope (IndividualComputers/ActiveDirectory/CSV/ManuallyDeployed/CloudeMachines/MongoDBComputers).
Get-VBRProtectionGroup [-ContainerType <VBRProtectionGroupContainerType[]> {IndividualComputers | ActiveDirectory | CSV ManuallyDeployed | CloudMachines | MongoDBComputers}] [<CommonParameters>] |
Detailed Description
This cmdlet returns protection groups.
You can get all protection groups or search for instances directly by name, ID, type or protection scope. Use an appropriate parameter set for each case.
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
Id | Specifies the array of protection group IDs. The cmdlet will return protection groups with these IDs. | Guid[] | False | Named | True (ByValue, |
Name | Specifies the array of protection group names. The cmdlet will return protection groups with these names. | String[] | False | Named | True (ByProperty |
Type | Specifies protection group types:
The cmdlet will return protection groups of these types. | VBRProtectionGroupType[] | False | Named | True (ByProperty |
ContainerType | Specifies the array of protection scope types:
The cmdlet will return protection groups created for these protection scope types. | VBRProtectionGroupContainerType[] | False | Named | True (ByProperty |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Example 1. Getting All Protection Groups
This command returns all protection groups added to Veeam Backup & Replication.
|
Example 2. Getting Protection Groups by ID
This command returns protection groups by ID.
|
Example 3. Getting Protection Groups by Scope of Active Directory Objects
This command returns protection groups created for the scope of Active Directory objects.
|