Get-Hotfix

Welcome Forums General PowerShell Q&A Get-Hotfix

Viewing 2 reply threads
  • Author
    Posts
    • #211998
      Participant
      Topics: 12
      Replies: 11
      Points: 156
      Rank: Participant

      Hello All,

      Despite googling around I just cannot find out how to get hotfix to give me the last 2 hotfix updates that have been applied to a machine. I appreciate that I can use a sort-object -descending order however if I just want the last 2 updates applied is there a way of getting hotfix to return this information.

       

      Many thanks

       

    • #212001
      Participant
      Topics: 4
      Replies: 2231
      Points: 5,414
      Helping Hand
      Rank: Community MVP
      Get-HotFix | Sort-Object -Property InstalledOn | Select-Object -Last 2
    • #212076
      Participant
      Topics: 12
      Replies: 11
      Points: 156
      Rank: Participant

      Thanks Olaf

Viewing 2 reply threads
  • You must be logged in to reply to this topic.