How to list Software update groups using PowerShell

Hi,

I'm looking for a way to get a list of all created software update groups on a primary site server (SCCM 2012 R2) so I can then use the script remove & expire old updates against them all.

https://gallery.technet.microsoft.com/scriptcenter/Remove-Expired-Superseded-f35495e1

Anyone able to help?

Mike

June 19th, 2015 9:26am

get-cmsoftwareupdategroup should do it?

https://technet.microsoft.com/en-us/library/jj850172%28v=sc.20%29.aspx

Jeff

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 10:36am

get-cmsoftwareupdategroup should do it?

https://technet.microsoft.com/en-us/library/jj850172%28v=sc.20%29.aspx

Jeff

June 19th, 2015 10:36am

get-cmsoftwareupdategroup should do it?

https://technet.microsoft.com/en-us/library/jj850172%28v=sc.20%29.aspx

Jeff

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 10:36am

Already had a look at this cmdlet and it does not appear to provide me with the required output.

Mike

June 19th, 2015 2:45pm

What exactly are you looking for?
Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 3:00pm

Hi Jeff,

Using my test lab as an example I have a number of software update groups with expired updates. I would like to list all defined software update groups and then use that information to run the expired clean-up script.



The output of get-cmsoftwareupdategroup does not appear to provide me with the names of the software update groups as shown in the screenshot above.

Mike

June 21st, 2015 8:55am

Hi Jeff,

You were correct about the get-cmsoftwareupdategroup cmdlet. I had looked at it at least four times before posting and could not see the field I was interested in but I tried again and found it.

The field was called LocalisedDisplayName which gave me the software update group name which I could then pass onto the clean up script.

(get-cmsoftwareupdategroup).LocalizedDisplayName

Thank-you for your help.

Mike

Free Windows Admin Tool Kit Click here and download it now
June 24th, 2015 2:49am

Hi Jeff,

You were correct about the get-cmsoftwareupdategroup cmdlet. I had looked at it at least four times before posting and could not see the field I was interested in but I tried again and found it.

The field was called LocalisedDisplayName which gave me the software update group name which I could then pass onto the clean up script.

(get-cmsoftwareupdategroup).LocalizedDisplayName

Thank-you for your help.

Mike

  • Marked as answer by MikePalmer Wednesday, June 24, 2015 6:48 AM
June 24th, 2015 6:48am

Glad you got it working!
Free Windows Admin Tool Kit Click here and download it now
June 24th, 2015 9:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics