Script Download: The script is available for download from https://gallery.technet.microsoft.com//How-to-get-information-0d13d8d8. 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 will demo how to get information about all the SQL Server instances on a local server.
As many people ask how to get information about instances, this script will list all the information about instances on a local server.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery