childjobs Property error

This topic contains 2 replies, has 2 voices, and was last updated by  Jeff Taylor 2 years, 5 months ago.

  • Author
  • #35019

    Jeff Taylor

    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

    random commandline

    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

    Jeff Taylor

    ah I see, thanks random

You must be logged in to reply to this topic.