dbatools is a free PowerShell module with over 200 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


Test-DbaSqlManagementObject

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.

Screenshots

dbatools - Test-DbaSqlManagementObject

Examples

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

Test-DbaSqlManagementObject -VersionNumber 13

Author

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

Get-Help

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