Get-WssBackupJob

Get-WssBackupJob

Gets the status of current or previous backup jobs.

Syntax

Parameter Set: Default
Get-WssBackupJob [[-JobCount] <UInt32> ] [ <CommonParameters>]

Detailed Description

The Get-WssBackupJob cmdlet gets the status of current or previous backup jobs.

Parameters

-JobCount<UInt32>

Specifies how many past backup jobs to retrieve.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get status past backup jobs

This command gets the status of the previous 10 backup jobs and stores the status in the variable named $ContosoBUJobs11.

PS C:\> $ContosoBUJobs11 = Get-WssBackupJob -JobCount 10

Start-WssBackupJob

Stop-WssBackupJob