Backup Exec Management Command Line Interface Help
Get-BEBarcodeRule Cmdlet
Synopsis

Gets barcode rules in Backup Exec.

Syntax
Get-BEBarcodeRule [[-Name] [<String[]>]] [-BarcodePrefix [<String[]>]] [-BarcodeSuffix [<String[]>]] [-Vendor [<String[]>]] [<CommonParameters>]

Get-BEBarcodeRule -MediaType [<BEMediaType[]>] [[-Name] [<String[]>]] [-BarcodePrefix [<String[]>]] [-BarcodeSuffix [<String[]>]] [-Vendor [<String[]>]] [<CommonParameters>]

Get-BEBarcodeRule [-Id] [<Guid[]>] [<CommonParameters>]

Get-BEBarcodeRule -InputObject [<BEBarcodeRule[]>] [<CommonParameters>]
Description

Gets barcode rules in Backup Exec.

Without parameters, Get-BEBarcodeRule gets all of the Backup Exec barcode rules. You can also specify a barcode rule by barcode rule name or barcode rule ID (Guid) or pass a Backup Exec barcode rule object through the pipeline to Get-BEBarcodeRule.

Parameters

-MediaType <BEMediaType[]>

Specifies one or more media type objects to filter the barcode rules. Enter a variable that contains the objects, or type a command or expression that gets the objects. See Get-BEMediaType.


Required true
Position Named
Accepts pipeline input true (ByValue)
Accepts wildcard characters false


-Name <String[]>

Specifies one or more barcode rules by barcode rule name (wildcards accepted). To specify multiple names, use commas to separate the names.


Required false
Position 0
Accepts pipeline input false
Accepts wildcard characters true


-Vendor <String[]>

Specifies one or more vendor values to filter the barcode rules. To specify multiple values, use commas to separate the values.


Required false
Position Named
Accepts pipeline input false
Accepts wildcard characters false


-BarcodePrefix <String[]>

Specifies one or more barcode prefix values to filter the barcode rules. To specify multiple values, use commas to separate the values.


Required false
Position Named
Accepts pipeline input false
Accepts wildcard characters false


-BarcodeSuffix <String[]>

Specifies one or more barcode suffix values to filter the barcode rules. To specify multiple values, use commas to separate the values.


Required false
Position Named
Accepts pipeline input false
Accepts wildcard characters false


-Id <Guid[]>

Specifies one or more barcode rules by barcode rule ID (Guid). To specify multiple IDs, use commas to separate the IDs.


Required true
Position 0
Accepts pipeline input true (ByValue)
Accepts wildcard characters false


-InputObject <BEBarcodeRule[]>

Specifies one or more barcode rule objects. Enter a variable that contains the objects, or type a command or expression that gets the objects.


Required true
Position Named
Accepts pipeline input true (ByValue)
Accepts wildcard characters false


<CommonParameters>

For more information about common parameters, type "Get-Help about_commonparameters".

Input Types
BackupExec.Management.CLI.BEMediaType

You can pipe a Backup Exec media type object to filter barcode rules returned by Get-BEBarcodeRule.



System.Guid

You can pipe a System.Guid that contains the ID of a Backup Exec barcode rule object to Get-BEBarcodeRule.



BackupExec.Management.CLI.BEBarcodeRule

You can pipe a Backup Exec barcode rule object to Get-BEBarcodeRule.

Return Value
BackupExec.Management.CLI.BEBarcodeRule

Get-BEBarcodeRule returns objects that represent Backup Exec barcode rules.

Examples

Example 1

C:\PS> Get-BEBarcodeRule

This command gets all of the barcode rules.


Example 2
C:\PS> Get-BEBarcodeRule -BarcodePrefix CLN

This command gets all of the barcode rules that have the barcode prefix named "CLN".


Example 3
C:\PS> Get-BEMediaType LTO-100 | Get-BEBarcodeRule

These commands get the barcode rules associated with the LTO-100 media type.

Related Link

Get-BEMediaType