Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

As far as I can see you are returning two types of results back.

- just a string with "There are no applicable updates for this computer."

- a CSV with 2 properties, KB and InstallStatus

To be able to handle the results uniformly, you will have to return the same layout on all occasions.

I'm not sure why insist on doing the ConvertFrom-Csv for each property separately.

When there is for example more than 1 KB returned, your calculated property KB will be an array.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos