Yes. Take a look at the TechNet script center for a variety of sample scripts that you can put together to do exactly what you want. The work's already done for you, all you have to do is put the pieces together.
Dig Deeper on Windows Management Instrumentation (WMI) Scripting
Related Q&A from Jerry Honeycutt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.