Here's a quick query you can run across all your servers (2012) to find a wealth of information like service pack, edition, number of CPUs and RAM.
Even more information is available if you want to add additional SERVERPROPERTY attributes or fields from one of the DMVs.
Thanks to all who have helped improve this script and this updated version is credited to
Here are the things addressed;
A few nagging problems:
1. Exclude OFF-LINE databases (good to exclude the READ-ONLY databases as well as u cannot alter them)
2. Expand the following fields as below:
[Shrink File (Truncate free space)] VARCHAR(2000) NULL,
[Shrink file To 20percent freespace] VARCHAR(2000) NULL,
[Increase File Size by 20percent] VARCHAR(2000) NULL
3. Exclude the FILESTREAM file types from the scope (as the script is hitting the division by zero)
by planting the the WHERE clause to a qouted dynamic statement as follows:
WHERE sys.database_files.type_desc not in (''FILESTREAM'')