Skip to content

Instantly share code, notes, and snippets.

@JohannesM
Last active December 10, 2015 12:58
Show Gist options
  • Select an option

  • Save JohannesM/8f05e911a18ac1b686a6 to your computer and use it in GitHub Desktop.

Select an option

Save JohannesM/8f05e911a18ac1b686a6 to your computer and use it in GitHub Desktop.

Revisions

  1. JohannesM renamed this gist Dec 10, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. JohannesM created this gist Dec 10, 2015.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    --- Get-WUList.ps1 2015-12-10 13:38:26.000000000 +0100
    +++ Get-WUList-new.ps1 2015-12-10 13:32:28.000000000 +0100
    @@ -574,6 +574,7 @@
    If($Update.IsHidden) {$Status += "H"} else {$status += "-"}
    If($Update.IsUninstallable) {$Status += "U"} else {$status += "-"}
    If($Update.IsBeta) {$Status += "B"} else {$status += "-"}
    + If($Update.BrowseOnly) {$Status += "O"} else {$status += "-"}

    Add-Member -InputObject $Update -MemberType NoteProperty -Name ComputerName -Value $Computer
    Add-Member -InputObject $Update -MemberType NoteProperty -Name KB -Value $KB
    @@ -599,7 +600,7 @@
    } #End If Test-Connection -ComputerName $Computer -Quiet
    } #End Foreach $Computer in $ComputerName

    - Return $UpdateCollection
    + Return $UpdateCollection | Format-Table -Wrap -AutoSize

    } #End Process