childjobs Property error

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Jeff Taylor Jeff Taylor 10 months ago.

  • Author
    Posts
  • #35019
    Profile photo of Jeff Taylor
    Jeff Taylor
    Participant

    When I try to execute exercise from MOL video :
    Chapter 12 – Working with Child Jobs.mp4

    Receive-Job -id 15 | select -ExpandProperty childjobs

    I get error:

    select : Property "childjobs" cannot be found.

  • #35021
    Profile photo of random commandline
    random commandline
    Participant

    Receive-Job allows you to display output of current running jobs.
    The output is type System.String. Select the child jobs from 'Get-Job.'

    Get-Job -Id 15 | Select-Object -ExpandProperty childjobs
  • #35061
    Profile photo of Jeff Taylor
    Jeff Taylor
    Participant

    ah I see, thanks random

You must be logged in to reply to this topic.