EasyCloud Cmdlets for Job management

How to manage SAP background jobs by using the EasyCloud Cmdlets

We have added new cmdlets for job management in our easycloud suite.
Here is a small example on how to use them:

#Load the Cmcmdlets in the PS-Session. Create a connection to your SAP System.
Add-PSSnapin cmcmdlets
$con = Get-CmSapConnect -UserName admin -Password ***** -Language en -Client 100 -Host ERP.REDFRUIT.CORP -SystemNumber 00

#Create a job
$jobname = „XBP_TEST_JOB“
$printparams = Set-CmSAPJobPrintParameters -DESTIN LP01
$steps = Set-CmSAPJobStep -ABAP_PROGRAM_NAME RSPARAM -PRINT_PARAMETERS $printparams
$jobID = Set-CmSAPJob -CmSapConnect $con -Job_Steps $steps  -JobClass A -JobName $jobname

#Start job
Start-CmSAPJob -CmSapConnect $con -Immediately -JobCount $jobID -JobName $jobname

Start-Sleep -Seconds 10

#Remove job
Remove-CmSapJob -JobName $jobname -JobCount $jobID -CmSapConnect $con

Downloads:
CmEasyCloud_JobMgmt_Demoscript