The script is available for download from https://gallery.technet.microsoft.com//Get-the-information-of-fa6f4b6e. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This PowerShell script shows how to get the information of used/free space of all SQL Server databases in multiple instances.
Some people ask how to get the information of used/free space of all SQL Server databases in multiple instances. This script will demo how to get this by using PowerShell.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery