I am trying to add additional information about KBs installed on Servers into our ISM import (all of the nodes, their status, etc).
I can see that I get this information from Orion.AssetInventory.OSUpdates
However, it lists each KB on a row per nodeid and I want to instead join this query into an existing one to be a single field.
Here is the basic SWQL query:
SELECT top 100
NodeID
,Name
--,Concat(osu.Name, ';') as [Installed_KBs]
FROM Orion.AssetInventory.OSUpdates osu
group by NodeID, osu.Name
The query returns:
| NodeID | Name |
| 12345 | KB3199986 |
| 12345 | KB4013418 |
| 12345 | KB4049065 |
What I want for an output from the query is:
| NodeID | Name |
| 12345 | KB3199986;KB4013418;KB4049065; |
I would expect that Concat is the way to go but I don't know how (or if) I can get all values for each node and put them together.
Alternatively, I guess I could run this as a Powershell query and try to append that to a CSV with the rest of the inventory but I feel that has a higher chance of causing issues.