Not sure what part you have trouble with.
The concept would be loop through the results and add unique hosts to a list or hashtable and add the user to a list and each software to a list.
Then loop through the hosts, for each user in the host, for each user get software.
Create a tree node for each host, user, and software
set the child nodes of user equal to software, child nodes of host to user
Reputation Points: 133
Solved Threads: 141
Veteran Poster
Offline 1,162 posts
since Aug 2008