Most times you aren't going to find examples, you're just going to have to read the material, find what you can, and grind out what you need specifically in a way that you can live with. People aren't generally going to do your work for you. You usually will need to put some effort into this.
For example, you'll find a number of examples of how to query WMI tables, specifically there is one on this site: faq102-7315 This would have been easily locatable upon search.
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.