Comments on: a new command to find all of your sql instances https://dbatools.io/find-sql-instances/ the community's sql powershell module Mon, 29 Jul 2019 15:48:57 +0000 hourly 1 https://wordpress.org/?v=5.3.4 By: Scott https://dbatools.io/find-sql-instances/#comment-69585 Mon, 29 Jul 2019 15:48:57 +0000 https://dbatools.io/?p=7317#comment-69585 Not getting too far here starting from the beginning… thanks for your efforts Chrissy.

PS C:\Windows\system32> Get-ADComputer -Filter { name -like ‘sql*’ } | Find-DbaInstance | Out-GridView
Find-DbaInstance : The term ‘Find-DbaInstance’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that th
try again.
At line:1 char:48
+ … t-ADComputer -Filter { name -like ‘sql*’ } | Find-DbaInstance | Out-G …
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Find-DbaInstance:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> Find-DbaInstance -DiscoveryType All -ScanType All
Find-DbaInstance : The term ‘Find-DbaInstance’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that th
try again.
At line:1 char:1
+ Find-DbaInstance -DiscoveryType All -ScanType All
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Find-DbaInstance:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

]]>
By: Jaime https://dbatools.io/find-sql-instances/#comment-68623 Thu, 11 Jul 2019 18:50:47 +0000 https://dbatools.io/?p=7317#comment-68623 | Out-File -FilePath c:\oracle\sqlservers.txt works fine for me

]]>
By: Chrissy LeMaire https://dbatools.io/find-sql-instances/#comment-67677 Thu, 27 Jun 2019 13:25:13 +0000 https://dbatools.io/?p=7317#comment-67677 ]]> IsClustered is only about Failover Clustered Instances, not Availability Groups. For Availability Groups, use Get-DbaAgHadr 👍

]]>
By: Chrissy LeMaire https://dbatools.io/find-sql-instances/#comment-67676 Thu, 27 Jun 2019 13:23:32 +0000 https://dbatools.io/?p=7317#comment-67676 This is super easy!

Find-DbaInstance AAABBB | Connect-DbaInstance | Select Name, IsClustered, VersionString

]]>
By: Zman https://dbatools.io/find-sql-instances/#comment-67627 Wed, 26 Jun 2019 21:01:23 +0000 https://dbatools.io/?p=7317#comment-67627 Performing some testing with get-sqlinstance and it would appear that the isClustered option does not appear to detect AoAG clustering. I have nearly 20 AoAG clusters and every node comes back as IsClustered = False.

It also appears that SQL 2016 and 2019 are not detected properly, the Caption for the SQL version returns Unknown. I updated dbatools using the self update command prior to my testing. Thoughts?

]]>
By: Zman https://dbatools.io/find-sql-instances/#comment-67625 Wed, 26 Jun 2019 20:09:26 +0000 https://dbatools.io/?p=7317#comment-67625 This is a very helpful module but the one thing that is missing is pulling the version and if its clustered.
Combining find-dbainstance and get-slqinstance would be magical. I’m not a PowerShell guru so if you would be so inclined to point me in the direction of taking the output of find-dbainstance and getting that into get-sqlinstance to grab the sql versions it would be super helpful.

]]>
By: Anne https://dbatools.io/find-sql-instances/#comment-65887 Tue, 21 May 2019 07:52:58 +0000 https://dbatools.io/?p=7317#comment-65887 Hi anyone,

I would like to store the list of servers into a sql table. What is the simplest way to this. I’m looking for something like this, but then write it to a sql table in stead of a csv file:
Find-DbaInstance -DiscoveryType All -ScanType All | Export-Csv -Path “C:\TEMP\servers.csv”

Thnx in advance!

]]>
By: Anne https://dbatools.io/find-sql-instances/#comment-65886 Tue, 21 May 2019 07:46:57 +0000 https://dbatools.io/?p=7317#comment-65886 Hi Chrissy,

I’m at a new client and I ran the command Find-DbaInstance -DiscoveryType All -ScanType All and it gave us a lot of sql server instances back, only not all. What could be the cause of that?
For one server it is an always-on cluster, but I don’t see the cluster, and also not de two nodes back in the list.
But now some backups failed, and I am checking if these servers are on the list, but no.
I can connect to the servers through ssms, so they are up and running.

Kind regards, Anne

]]>
By: Chrissy LeMaire https://dbatools.io/find-sql-instances/#comment-63303 Tue, 16 Apr 2019 21:09:05 +0000 https://dbatools.io/?p=7317#comment-63303 David,
Yes, you should always get permission before running any scanner on the network.

]]>
By: David https://dbatools.io/find-sql-instances/#comment-63264 Tue, 16 Apr 2019 17:50:21 +0000 https://dbatools.io/?p=7317#comment-63264 antivirus sent alerts on this
security team heading my way now

]]>