Author Posts

May 31, 2017 at 3:51 pm

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?

May 31, 2017 at 3:54 pm

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

May 31, 2017 at 4:21 pm

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