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


Tests to see if the SMO version specified exists on the computer.

The Test-DbaSqlManagementObject returns True if the Version is on the computer, and False if it does not exist.


dbatools - Test-DbaSqlManagementObject


Returns True if the version exists, if it does not exist it will return False

Test-DbaSqlManagementObject -VersionNumber 13


This command was created by Ben Miller. You can find Ben on Twitter and his blog.


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

Source Code

Want to see the source code? View Test-DbaSqlManagementObject.ps1 on GitHub

Related commands