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 2 months, 3 weeks ago.

  • Author
    Posts
  • #71818

    time4116
    Participant

    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={$_.name}} |`
    Get-Hotfix 

    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
    Keymaster

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

  • #71822

    time4116
    Participant

    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.