locked
How to get list of approved MSU for specified target group RRS feed

  • Question

  • Hello guys,

    I have question about WSUS on windows server 2008 r2 sp1.

    I need to get list of approved MSU for specified target group only for windows server 2008 r2 sp1, but I don't know whole syntax.

    I can get list of approved updates for w2k8r2sp1:

    $Title_r2='R2'
    $Itanium='Itanium'
    $wsus.GetUpdates() | Select Title | Where {
       $_.Title -match $Title_r2 -and $_.Title -notmatch $Itanium -and $_.IsApproved -eq 'True'
    }

    But how can I get it for specified target group?

    Please, help :)

    Friday, October 10, 2014 3:35 PM

Answers

  • But how can I get it for specified target group?

    Is there some reason you're not just using the native console reporting to do this?

    Testing for 'R2' in the title will not guarantee getting all of the applicable updates, you need to query by Product Category to get all of them.

    From my quick research, it appears that GetUpdates() does not return target group information, just a flag state on whether the update has been approved, or not. I don't have a working PS WSUS instance available to me at the moment, but my guess would be that GetUpdateApprovals() (or something like it) is what you'll need to use to filter by Target Group.


    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

    • Marked as answer by Steven_Lee0510 Thursday, October 23, 2014 3:37 AM
    Friday, October 10, 2014 4:15 PM