learn windows PS in a month of lunches third edition - question

Welcome Forums General PowerShell Q&A learn windows PS in a month of lunches third edition - question

This topic contains 1 reply, has 2 voices, and was last updated by

1 day, 8 hours ago.

  • Author
  • #134141

    Points: 12
    Rank: Member

    In section 9, lab exercise question 3,  I don't think it retrieves the hotfix for remote computer but its own.  My question is am I missing something , why does it not produce results if it is accepting input pipeline of property computername


    Get-ADComputer -filter * | Select-Object @{l='computername';e={$_.name}} | Get-Hotfix

    Answer says -

    This should work. The first part of the expression is writing a custom object to the pipeline that has a Computername property. This property can be bound to the Computername parameter in Get-Hotfix because it accepts pipeline binding by property name.


  • #134486

    Points: 427
    Helping Hand
    Rank: Contributor

    There is a bug in Get-Hotfix documentation. You are not the first person to ask about this. The second thread, the majestic and elusive DonJ himself answers the question:


You must be logged in to reply to this topic.