Saturday, 28 November 2015

WMIC - The "Instrumentation" Command Line

Ever heard to WMIC ("Wemmick")?  It is a great tool that can be used at the command prompt.

To view all the logical drives on a Windows machine you can do:

>wmic
wmic:root\cli> logicaldisk
wmic:root\cli> get caption

Will print out the caption column of the logicaldisk output.

No comments: