PowerShell - List all SQL instances on my system?

后端 未结 7 2046
一生所求
一生所求 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 16:00

    Import powershell sql server extensions:

     Import-Module SqlServer 
    

    Then do these commands

    Set-Location SQLSERVER:\SQL\localhost
    Get-ChildItem
    

提交回复
热议问题