Add-SmBatchJob

Detailed Description

The Add-SmBatchJob cmdlet sits as the interface between a batch and a job. It requires two parameters to be provided.
A JobId of a job you wish to move, and the Batch (or BatchId) you wish to move it to.

Syntax

Add-SmBatchJob [[-BatchId] <int>] [-JobId] <int> [<CommonParameters>]

Parameters

-Batch <Batch>
    Provide Batch from pipeline

    Required? false
    Position? 0
    Accept pipeline input? true (ByValue)
    Parameter set name (All)
    Aliases None
    Dynamic? false

-BatchId <int>
    Specify BatchId

    Required? false
    Position? 0
    Accept pipeline input? false
    Parameter set name (All)
    Aliases None
    Dynamic? false

-JobId <int>
    Specify JobId to add to batch

    Required? true
    Position? 1
    Accept pipeline input? true (ByValue)
    Parameter set name (All)
    Aliases None
    Dynamic? false

<CommonParameters>
    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see
    about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Examples

Add-SmBatchJob is used to modify batches that are set for Migration, Discovery or Reporting.
An example how to add a JobId 19 to BatchId 3;

PS C:\Program Files\Simply Migrate> Add-SmBatchJob -BatchId 3 -JobId 19
09:40:00.6465 Info Job 19 added to Batch 3

BatchId     : 3
BatchName   : Your Batch Name
CreatedDate : 7/28/2015 09:40:00 AM
Jobs        : {18, 19}
IsActive    : False
InProgress  :