dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


The Get-DbaSqlInstanceProperty command gets SQL Instance properties from the SMO object sqlserver.




Returns SQL Instance properties on the local default SQL Server instance

Get-DbaSqlInstanceProperty -SqlInstance localhost

Returns SQL Instance properties on default instance on sql2 and sqlexpress instance on sql4

Get-DbaSqlInstanceProperty -SqlInstance sql2, sql4\sqlexpress

Returns SQL Instance properties on sql2 and sql4

‘sql2′,’sql4’ | Get-DbaSqlInstanceProperty


This command was created by Klaas Vandenberghe. You can find Klaas on Twitter.


From PowerShell, execute Get-Help Get-DbaSqlInstanceProperty -Detailed for more information on this function.

Source Code

Want to see the source code? View Get-DbaSqlInstanceProperty.ps1 on GitHub

Related commands