PowerShell domain disk statistics report
Ever needed an automated disk statistics report for your Windows domain? I did. I was able to gather bits and pieces from around the Internet and create the script below. It's designed for my needs but can be easily edited to suit yours. The basic functionality is to use WMI via PowerShell to poll servers, PCs, or both and grab disk usage for any system within the targeting parameters and generate an easy to read HTML report that is emailed to anyone needed. Our environment is comprised of both physical and virtual systems. I need to be able to spot systems running low on disk space with expandable disks (virtual) that can be quickly grown if needed. The output color codes C: drives below 60 GB in red, that's my low threshold. It also color codes physical verses virtual. You can select between a full report of every system, or a brief option for only systems below threshold. You can also filter by server or PC and turn console out...