共用方式為


Get-OBJob

Gets a list of operations from a server as OBJob objects.

語法

Default (預設值)

Get-OBJob
    [[-Previous] <UInt32>]
    [[-Status] <CBJobStatusFilter>]

Description

The Get-OBJob cmdlet gets a list of operations from a server as OBJob[] objects.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

範例

EXAMPLE 1

 Get-OBJob -Previous 5 -Status "Successful"

This example returns a list of successful jobs out of the last five jobs performed.

參數

-Previous

Specifies a previous number of backup or restore operations to query from the backup events.

參數屬性

類型:UInt32
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:2
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Status

Filters the jobs based on their status. The following three values are supported - "All", "Successful" and "Failed". If this parameter is not used no filtering is performed. The Previous parameter must be specified to use the Status parameter. The Status parameter is restricted to three string inputs.

參數屬性

類型:CBJobStatusFilter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:3
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

輸入

None

輸出

Microsoft.Internal.CloudBackup.Commands.OBJob