PowerShell - List all SQL instances on my system?

后端 未结 7 2081
一生所求
一生所求 2021-02-19 15:04

Is there a Powershell command to list all SQL instances on my system? (MS SQL 2008)

7条回答
  •  遥遥无期
    2021-02-19 15:54

    Just another way of doing it...can be a little quicker than SQLPS to get a quick answer.

    
    (get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances
    

提交回复
热议问题