New job configuration cmd-lets available

To make it easier creating those special jobs requiring specific job configurations, like a specific Message Class filter for example, we’ve introduced the following new PowerShell cmd-lets in version 3.3.2 (build > 3220).

New-SMJobConfig

NAME
    New-SMJobConfig

SYNTAX
    New-SMJobConfig [-MaxThreads ] [-DequeueCount ] [-MaxSingleFailuresPct ] [-RetryDelay ]
    [-IncludeMsgClass <string[]>] [-ExcludedPaths <string[]>] [-ReportLogging  {Detailed | Normal |
    Minimum}]  []

Examples

PS C:\Program Files (x86)\Simply Migrate> New-SMJobConfig -IncludeMsgClass IPM.Contact

MaxThreads           : 16
DequeueCount         : 1000
MaxSingleFailuresPct : 80
RetryDelay           : 10
IncludeMsgClass      : {IPM.Contact}
ExcludedPaths        : {{0}$Recycle.Bin\, {0}Program Files\, {0}Program Files (x86)\, {0}Windows\...}
ReportLogging        : Normal

PS C:\Program Files (x86)\Simply Migrate> New-SMJob -Source PSTFile -SourceInput C:\Temp\myoutlook.pst -Target ReportOnly -JobConfig (New-SMJobConfig -MaxThreads 32 -IncludeMsgClass IPM.Contact)

JobId               : 1611
BatchId             :
JobStatus           : Created
…[snip]
SourceType          : {"srcpst":"C:\\Temp\\myoutlook.pst"}
TargetType          : {"targreport":null}
Config              : {"MaxThreads":32,"DequeueCount":1000,"MaxSingleFailuresPct":80,"RetryDelay":10,"IncludeMsgClass":
                      ["IPM.Contact"],"ExcludedPaths":["{0}$Recycle.Bin\\","{0}Program Files\\","{0}Program Files
                      (x86)\\","{0}Windows\\","{0}ProgramData\\"],"ReportLogging":0}

Set-SMJobConfig

NAME
    Set-SMJobConfig

SYNTAX
    Set-SMJobConfig [-JobId ] [-Job ] [-MaxThreads ] [-DequeueCount ]
    [-MaxSingleFailuresPct ] [-RetryDelay ] [-IncludeMsgClass <string[]>] [-ExcludedPaths <string[]>]
    [-ReportLogging  {Detailed | Normal | Minimum}]  []

Examples

PS C:\Program Files (x86)\Simply Migrate> Set-SMJobConfig -JobId 1611 -IncludeMsgClass IPM.Contact,IPM.Appointment

JobId               : 1611
BatchId             :
JobStatus           : Created
…[snip]
Config              : {"MaxThreads":32,"DequeueCount":1000,"MaxSingleFailuresPct":80,"RetryDelay":10,"IncludeMsgClass":
                      ["IPM.Contact","IPM.Appointment"],"ExcludedPaths":["{0}$Recycle.Bin\\","{0}Program
                      Files\\","{0}Program Files (x86)\\","{0}Windows\\","{0}ProgramData\\"],"ReportLogging":0}


PS C:\Program Files (x86)\Simply Migrate> Get-SMJob 1611 | Set-SMJobConfig -MaxThreads 8

JobId               : 1611
BatchId             :
JobStatus           : Created
…[snip]
Config              : {"MaxThreads":8,"DequeueCount":1000,"MaxSingleFailuresPct":80,"RetryDelay":10,"IncludeMsgClass":[
                      "IPM.Contact","IPM.Appointment"],"ExcludedPaths":["{0}$Recycle.Bin\\","{0}Program
                      Files\\","{0}Program Files (x86)\\","{0}Windows\\","{0}ProgramData\\"],"ReportLogging":0}

Enjoy.

No Comments

Be the first to start a conversation

Leave a Comment