Couple of WMI based posts you may be interested in:
Finding the current logged on user
http://itknowledgeexchange.techtarget.com/powershell/current-logged-on-user/
and the Windows System Assessment Tool
http://itknowledgeexchange.techtarget.com/powershell/windows-system-assessment-tool/
Technorati Tags: PowerShell,WMI