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

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?

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

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