Is there a Powershell command to list all SQL instances on my system? (MS SQL 2008)
$a = "MyComputerName" [System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() | ? { $_.servername -eq $a}
Aaron method return a more sure response. Read Here about Instance.GetDataSources()