Cannot use Get-Member on SCCM "Get-CMSoftwareUpdate" cmdlet?

This topic contains 5 replies, has 3 voices, and was last updated by Profile photo of Will Anderson Will Anderson 1 year, 6 months ago.

  • Author
    Posts
  • #27432
    Profile photo of I Am Sir Ask Alot
    I Am Sir Ask Alot
    Participant

    I log into my SCCM 2012 R2 Site Server, I run the "Connect via Windows PowerShell" selection on the ribbon dropdown within the SCCM console and I run the following command and I get nothing, it just sits there with a blinking cursor FOREVER.

    Get-CMSoftwareUpdate | gm

    Is anyone privy to why this is occurring?

    I am trying to find out all the parameters I can use with this cmdlet, but I can't if get-member isn't working with it. I can use get-member on other SCCM cmdlets, just not the one I need it to.

    Thanks

  • #27433
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    I'm not sure what's causing that, but Get-Member isn't used to show you what parameters you can use. For that, you'd run:

    Get-Command Get-CMSoftwareUpdate -Syntax
  • #27438
    Profile photo of I Am Sir Ask Alot
    I Am Sir Ask Alot
    Participant

    I meant properties, not parameters.

    I want to see all the "properties" that get-cmsoftwareupdate can work with, not parameters.

    Thanks

  • #27439
    Profile photo of Will Anderson
    Will Anderson
    Keymaster

    Try selecting a specific update, and then pipe it to Get-Member, or do Get-CMSoftwareUpdate | Select-Object -First 1 | Get-Member. If you haven't specified an update, it's likely trying to enumerate all of the updates you've sync'd.

  • #27445
    Profile photo of I Am Sir Ask Alot
    I Am Sir Ask Alot
    Participant

    AHHHH HAAA!!

    Yep that was it Will.

    Thanks man

  • #27457
    Profile photo of Will Anderson
    Will Anderson
    Keymaster

    Anytime! 🙂

You must be logged in to reply to this topic.