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

Creates a new bar code rule in Backup Exec.

Syntax
New-BEBarcodeRule -MediaType [<BEMediaType>] [-BarcodeSuffix [<String>]] [-Vendor [<String>]] [-BarcodePrefix [<String>]] [-WhatIf [<SwitchParameter>]] [-Confirm [<SwitchParameter>]] [<CommonParameters>]
Description

Creates a new bar code rule in Backup Exec.

Parameters

-MediaType <BEMediaType>

Specifies the media type to include in the bar code rule. See Get-BEMediaType


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


-Vendor <String>

Specifies the name of the robotic library's manufacturer.


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


-BarcodePrefix <String>

Specifies the code that is placed before the bar code that represents a media type.


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


-BarcodeSuffix <String>

Specifies the code that is placed after the bar code that represents a media type.


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


-WhatIf <SwitchParameter>

Describes what happens if you execute the command without actually executing the command.


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


-Confirm <SwitchParameter>

Prompts you for confirmation before executing the command.


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


<CommonParameters>

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

Input Type
BackupExec.Management.CLI.BEMediaType

You can pipe a Backup Exec media type object to New-BEBarcodeRule

Return Value
BackupExec.Management.CLI.BEBarcodeRule

New-BEBarcodeRule returns the bar code rule that was created.

Example
C:\PS> New-BEBarcodeRule -MediaType LTO-100 -BarcodeSuffix L1

This command creates a bar code rule for the media type named "LTO-100" with a barcode suffix named "L1".

Related Link

Get-BEMediaType