FindLastSession is a parameter of job object and you can get it the following way:
Code: Select all
$Job = Get-VBRJob -name "Name of your Job"
$Job.FindLastSession()
Code: Select all
(Get-VBRJob -name "Name of your Job").FindLastSession
It can be neither changed nor specified, it just provides you with the information relevant to the latest session.
As to
objects in job, they, in their turn, can be output in different ways:
Code: Select all
$Job = Get-VBRJob -name "Name of your Job"
$Job.GetObjectsInJob()
Code: Select all
(Get-VBRJob -name "Name of your Job").GetObjectsInJob()
Code: Select all
$Job = Get-VBRJob -name "Name of your Job"
Get-VBRJobObject -Job $Job
Additionally, the objects in job can be
added and
deleted via PS.
Anyway, the best option you have, if you’re eager to find out parameters of corresponding object, is to run
get-member command, which gives you information regarding properties and methods that are available to you.
Code: Select all
Get-VBRJob -name "Name of your Job" | Get-Member
Hope this helps.
Thanks.