Created
February 5, 2015 09:42
-
-
Save MagicAndi/ec3f43d70aa4b731114d to your computer and use it in GitHub Desktop.
PowerShell one-liner to discover all SQL Server instances running on network. Requires SQL Browser service to be running, as described in http://www.mssqltips.com/sqlservertip/2013/find-sql-server-instances-across-your-network-using-windows-powershell/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment