I'm interested in learning how to use WMIC, but I'm confused on where to begin. How does this tool compare to PowerShell? Can Powershell do everything WMIC can... and more?
|
feedback
|
|
PowerShell is a turing-complete scripting language. You can, in theory, write a program in PowerShell to do anything. WMIC is a command-line program for interacting with WMI. By itself, it has no constructs for branching and looping, variable manipulation, or any of the nice things that a programming language has. It's just a tool, basically, for retrieving or setting values in WMI. Acting programmatically on the output or input of the tool is something that's typically handled by a batch-script that calls the tool. You can learn more about using the WMIC tool from Microsoft or by Googling phrases like WMIC tutorial. You'll find lots of stuff. | |||||||||
feedback
|