Is there a Powershell command to list all SQL instances on my system? (MS SQL 2008)
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | out-null $mach = '.' $m = New-Object ('Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer') $mach $m.ServerInstances