Wednesday, October 18, 2006

Windows Command Line

Do you know Windows Management Instrumentation Command-line (WMIC) tool?

Nope, then you should peer at wmic man page by
wmic/?

Sample command usage
wmic bios > os-bios.xls
wmic process > os-process.xls
wmic os > os.xls

This comes faily handy, but three drawbacks I have found so far are
1) You have to admin (Isn't MS advocating least-privilege law)
2) It only supports Windows XP Pro and 2003
3) Lack of output indentation

Anyway, it is a pretty cool utility, all windows power user should spend little bit time on learning it.

More WMIC info can be found here

No comments: