Lab 9 - Question 3 - Learn Windows Powershell In A Month Of Lunches

This topic contains 2 replies, has 2 voices, and was last updated by  time4116 11 months, 3 weeks ago.

  • Author
  • #71818


    Would this third version of the command work to retrieve the list of hotfixes
    from the domain controllers? Why or why not? Write out an explanation, similar
    to the ones I provided earlier in this chapter.

    get-adcomputer -filter * `
    -searchbase "ou=domain controllers,dc=company,dc=pri" |`
    Select-Object @{l='computername';e={$}} |`

    The lab answers state that this solution should work. However, it seems to just run on the localhost and ignore the results found in get-adcomputer. What am I missing here?

  • #71819

    Don Jones

    It used to work. Microsoft had a bug in the command and removed the pipeline binding for the computer name parameter.

  • #71822


    Ah okay. The command help does not reflect that. Thanks very much for your feedback!

You must be logged in to reply to this topic.