Microsoft have released a nice tool which help you create WMI queries. WMI Code Creator 1.0 is a powerful tool to create WMI queries without little or no programming skills. I use this frequently to retrieve the model name from computers that I need to target specific driver packages.
My colleage at Atea, Oddvar Håland Moe, have written a script that dumps the password of the network access account from the boot image in plain text. This is why you never enable command line support in your boot images on a production network. Anyone will be able to retrieve the password during PXE boot / OS deployment.
This must be the easiest way to install all the OS roles and features when prepearing a new server for SCCM 2012. I tested this on a fresh install of Windows Server 2008 R2 and it works like a charm.