WMI gives a lot of such important information which makes windows administration more manageable. Scripting becomes more and more robust than ever before.
Powershell can be used to call WMI objects and we can get so much information out of it.
CODE :
get-wmiobject win32_logicaldisk | select DeviceId,Size, FreeSpace
You might get a result in proper tabular format. There are lot many scripts possible with this.
1. Script to report low disk space
2. Script to display disk inventory in multiple hosts
If you have trouble writing scripts mentioned above, just add your request in comment, I will pick from there.
This blog is nice and very informative. I like this blog.
ReplyDeleteblog Please keep it up.