Posted on 04-15-2020 05:13 AM
I face a problem to collect Computers "Running Services" or "Application names" through REST API call with a PowerShell Script.
Basically, i can fetch computers datas when there are not duplicated but for instance as there are generally several "Running Services" or "Application names" it does not retrieve it and i get these datas instead "System.Objet"
Can anyone help me please ?
Posted on 04-15-2020 06:06 AM
Try piping the output of the call to
That will convert what you got into strings that you can view as text.
Posted on 04-19-2020 09:43 PM
yup most OOP languages will store API calls as objects, which you can typically call some sort of built in to print the text.
Posted on 04-23-2020 06:07 AM
As tlarkin says, powershell will output it as an object, in this case it'll be an array of objects so you'll have to loop through it etc. to get what you want.