SQLCMD -L Returning Servers Without SQL Installed

sql serversqlcmd

I have been running this command in our test domain:

sqlcmd -L

And have found that amongst all the valid results, it also returns several servers that definitely do not have SQL server installed. It is possible they may have had SQL installed on then in the distant past, but definitely not currently.

How is this possible? I would have thought SQL Browser would have to be installed and running on a server for it to respond to the sqlcmd -L broadcast.

In case it helps, the servers that are false positives are:
-a domain controller
-a server for Microsoft SCCM
-a server for PKI management

Thanks
Mike

Best Answer

The servers might be running SQLServer Express and/or LocalDB

SCCM has a SQL Server backend with a runtime license, Domain Controllers might have a localdb instance and so forth, check in the services app on the servers for those or run the following on the command prompt

tasklist /FI "imagename eq sqlservr.exe"