Windows – Export hardware specifications to a spreadsheet for Windows Server

powershellscriptingvbscriptwindows

I have a bunch of servers : Windows 2003 and 2008. I just wanted to export these hardware specs to a spreadsheet:

cpus : num processors, clock speed, etc

total hard disk space

total used disk space

computer model

I started writing a script to do this via diskpart, systeminfo, and wmic. But before I get too crazy and reinvent the wheel, just wondering if someone knows of a powershell, vb script, or something else that could do this.