Check free disk space on Remote Computers with PowerShell

One of the important thing for system administrators is to monitor the free disk space on servers. In this article I’ll will show how to monitor your free disk space from remote computers in your network and create a disk report with the results with PowerShell.

The PowerShell function below is based on Get-WmiObject cmdlet which gets instances of Windows Management Instrumentation (WMI) classes and it will check the free space on the C, D and E partitions. By using the switch option you can change description of any disk partition.

PowerShell code


After testing I added Get-FreeDiskSpace to my own CLOUD PowerShell module:

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 201 Articles

Be the first to comment

Leave a Reply