SCRIPT: How to check how many SQL instances are installed on the Windows Server?

 Get-Service | Where-Object {$_.DisplayName -like "SQL Server (*"}

Comments