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

Gets media types in Backup Exec.

Syntax
Get-BEMediaType [[-Name] [<String[]>]] [<CommonParameters>]

Get-BEMediaType -TapeDriveDevice [<BETapeDriveDevice>] [-WritableMediaType [<SwitchParameter>]] [-ReadableMediaType [<SwitchParameter>]] [<CommonParameters>]

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

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

Gets media types in Backup Exec.

Without parameters, Get-BEMediaType gets all of the Backup Exec media types. You can also specify a media type by media type name or media type ID (Guid) or pass a Backup Exec media type object through the pipeline to Get-BEMediaType.

To configure bar code rules, you can specify the -TapeDriveDevice parameter which returns the media types that the tape drive device supports. You can also specify the -ReadableMediaType and -WritableMediaType parameters to get the media types that the tape drive device is configured to read from and write to. See New-BEBarcodeRule and Set-BETapeDriveDevice for more information.

Parameters

-TapeDriveDevice <BETapeDriveDevice>

Specifies a tape drive device object to get the media types supported by it.


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


-ReadableMediaType <SwitchParameter>

Returns the media types that a tape drive device is configured to read from.


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


-WritableMediaType <SwitchParameter>

Returns the media types that a tape drive device is configured to write to.


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


-Name <String[]>

Specifies one or more media types by media type 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


-Id <Guid[]>

Specifies one or more media types by media type 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 <BEMediaType[]>

Specifies one or more media type 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.BETapeDriveDevice

You can pipe a Backup Exec tape drive device object to Get-BEMediaType.



System.Guid

You can pipe a System.Guid that contains the ID of a Backup Exec media type object to Get-BEMediaType.



BackupExec.Management.CLI.BEMediaType

You can pipe a Backup Exec media type object to Get-BEMediaType.

Return Value
BackupExec.Management.CLI.BEMediaType

Get-BEMediaType returns objects that represent Backup Exec media types.

Examples

Example 1

C:\PS> Get-BEMediaType

This command gets all of the media types.


Example 2
C:\PS> Get-BEMediaType -Name "LTO"

This command gets the media types named "LTO".


Example 3
C:\PS> Get-BEMediaType -Name "*LTO*"

This command gets all of the media types that match the wildcard "*LTO*".

Related Links

New-BEBarcodeRule
Set-BETapeDriveDevice