The PowerShell example here uses a somewhat depricated syntax. A better way is:$srv = new-Object Microsoft.SqlServer.Management.Smo.Server "(local)"
Write-Host $srv.Information.VersionOn my server here, this results in:11.0.2100
↧