I always get asked how to pull information from a remote system so that RDP or VNC doesn’t have to be used. I always respond with "WMI, dude!" and I always get frowns. Seems a lot of folks really don’t like writing vbscripts! I can’t image why, personally I love them. But if you hate writing scripts just to get info from one computer, here’s the tool for you: WMIC. It’s a command line tool for using WMI and it can be very handy. Here are some of the query I find helpful. If you exclude the "/NODE:<COMPUTERNAME>" you can run all these queries locally as well.
1. WMIC /NODE:<COMPUTERNAME> BIOS GET SERIALNUMBER
2. WMIC /NODE:<COMPUTERNAME> COMPUTERSYSTEM GET MANUFACTURER, MODEL
3. WMIC /NODE:<COMPUTERNAME> COMPUTERSYSTEM GET TOTALPHYSICALMEMORY
4. WMIC /NODE:<COMPUTERNAME> PRODUCT GET NAME, VERSION
5. WMIC /NODE:<COMPUTERNAME> DISKDRIVE GET MODEL, SIZE
6. WMIC /NODE:<COMPUTERNAME> LOGICALDISK WHERE DRIVETYPE="3" GET NAME, SIZE, FREESPACE
7. WMIC /NODE:<COMPUTERNAME> OS GET CAPTION, VERSION
8. WMIC /NODE:<COMPUTERNAME> NICCONFIG
There are tons of stuff you can do with this. Type WMIC at a command prompt and then /? at the WMIC prompt to list available aliases (like BIOS and OS). To list all the properties without having to scroll around type WMIC <ALIAS> LIST FULL. To find out what methods can be called type WMIC <ALIAS> CALL.
Useful WMIC links: