Access Lazy properties in power shell code while reading SCCM classes

S

Shreedhar Ghare

Hello All, I am trying to read MECM (SCCM) server through Rest API. but while accessing SMS_Program class, I am unable to read SupportedOperatingSystems property in powershell code. As SupportedOperatingSystems is Lazy property object is fetching blank value. Power Shell Commands: $uri = "https://Localhost.Ghare/AdminServices/wmi/SMS_Program" $resp = Invoke-RestMethos -Uri $uri -userDefaultCredentials $resp.values Output {} Could you please help us to fetch Lazy properties in Powershell script?

Continue reading...
 
Back
Top Bottom