Skip to content

Instantly share code, notes, and snippets.

@chipitsine
Created March 9, 2016 13:16
Show Gist options
  • Save chipitsine/6fc98c03ad3a50dbddbf to your computer and use it in GitHub Desktop.
Save chipitsine/6fc98c03ad3a50dbddbf to your computer and use it in GitHub Desktop.
cls
$sql = ([System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() | Where { $_.InstanceName -ne 'SQLEXPRESS'})
'number of intances found: {0}' -f $sql.Count
'-----------------------------------------'
$sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment