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’
- Active/Pass
- Active/Fail
- Active/Unknown
- Inactive/Pass
- Inactive/Fail
- Inactive/Unknown