Date: Thu, 28 Mar 2024 11:20:48 +0000 (UTC) Message-ID: <217001426.11387.1711624848464@change.sos-berlin.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_11386_1580874426.1711624848464" ------=_Part_11386_1580874426.1711624848464 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Adding ad hoc orders is a frequent use case, e.g. for testing purposes:<= /p>
1.= .10 | Add-JobSchedulerOrder -JobChain /some_folder/some_job_chain
Explanations
<=
a href=3D"/display/PKB/PowerShell+CLI+1.1+-+Cmdlets+-+Add-JobSchedulerOrder=
">Add-JobSchedulerOrder
.For better control of newly added orders it is recommended to create ord= er objects like this:
$o= rders =3D ( 1..10 | Add-JobSchedulerOrder -JobChain /some_folder/some_job_c= hain -Immediate ) $orders | Remove-JobSchedulerOrder
Explanations
-Immediate
to submit =
each order individually to the JobScheduler Master and to receive the newly=
created order identification immediately.Add-JobSchedulerOrder
c=
mdlet is assigned to a variable for later use.Remove-JobS=
chedulerOrder
cmdlet.Before acting on temporary orders it is recommended to identify the orde= r objects like this:
$o= rders =3D Get-JobSchedulerOrder -NoPermanent $orders.count
Explanations
-Directory
a=
nd -JobChain
to further restrict the number of orders.Get-JobSchedulerOrder
cmdlet is a=
ssigned to a variable for later use.Suspending temporary orders allows to keep such orders for further inves= tigation. Suspended orders are not carried out by the JobScheduler Master:<= /p>
Ge= t-JobSchedulerOrder -NoPermanent | Suspend-JobSchedulerOrder
Explanations
Suspend-JobSchedulerOrder
.-Directory and -JobChain
to further restrict the numbe=
r of orders.
$o= rders =3D Get-JobSchedulerOrder -NoPermanent $orders.count $orders $orders | Suspend-JobSchedulerOrder
Explanations
-NoPermanent
switch.
-Directory and -JobChain
to further restrict the numbe=
r of orders.
Get-JobSchedulerOrder
c=
mdlet is assigned to a variable for later use.$order
variable, i.e. the list of orde=
rs.Suspend-JobSchedule=
rOrder
cmdlet,Removing temporary orders prevents JobScheduler Master from executing fu= rther job nodes of a job chain for that order.:
Ge= t-JobSchedulerOrder -NoPermanent | Remove-JobSchedulerOrder
Explanations
Remove-JobSchedulerOrder
.-Directory and -JobChain
to further restrict the numbe=
r of orders.