This T-SQL script returns the path and sizes (total, used and available) of the primary, secondary and transaction log data files.

It is usefull when you need the total amount of disk space of all databases of all registered servers in SQL Server Management Studio.

You can use it too when you need to save historical sizes of your database files.