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

 
Participant
3 months, 1 week ago.

  • Author
    Posts
  • #134141

    Participant
    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

    Participant
    Points: 639
    Helping Hand
    Rank: Major 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:

    https://powershell.org/forums/topic/error-in-posh-mol-or-maybe-the-get-hotfix-help-file/
    https://powershell.org/forums/topic/custom-properties-and-piping/

The topic ‘learn windows PS in a month of lunches third edition - question’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort