Configuration manager 2012 Enumeration for health status of clients

Welcome Forums General PowerShell Q&A Configuration manager 2012 Enumeration for health status of clients

This topic contains 3 replies, has 2 voices, and was last updated by

 
Participant
1 month, 2 weeks ago.

  • Author
    Posts
  • #119250

    Participant
    Points: 42
    Rank: Member

    After you are connected to Configuration manager with

    Import-Module "$($ENV:SMS_ADMIN_UI_PATH)\..\ConfigurationManager.psd1"

    Does anyone happen to know the values for the status's from this cmdlet or if there is an enum for it:

    get-cmdevice -collectionname 'All Systems' -name $computername | select SMSID,name,clientactivestatus

     

    This article indicates there are 6 status'

    https://social.technet.microsoft.com/wiki/contents/articles/35116.sccm-understanding-the-client-health-activeinactive-status.aspx?wa=wsignin1.0

    • Active/Pass
    • Active/Fail
    • Active/Unknown
    • Inactive/Pass
    • Inactive/Fail
    • Inactive/Unknown

    I don't have access to the View. Hoping there was a Enum to help with it.

  • #119291

    Participant
    Points: 814
    Helping Hand
    Rank: Major Contributor

    Never worked with SCCM, When checked the documentation of the SMS_CombinedDeviceResources class. You can get it from the AMTStatus property of this class.

  • #119308

    Participant
    Points: 42
    Rank: Member

    Nice … thank you for pointing me to that class... Much appreciated.

  • #119309

    Participant
    Points: 814
    Helping Hand
    Rank: Major Contributor

    You're welcome, this resembles the power of community.

You must be logged in to reply to this topic.