Created
July 9, 2014 11:49
-
-
Save yorek/c3c2a8e6a44aee01a425 to your computer and use it in GitHub Desktop.
Detects Analysis Services Version and Edition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Reflection.Assembly]::LoadWithPartialName("Microsoft.AnalysisServices") | Out-Null | |
$serverName = "localhost" | |
$server = New-Object Microsoft.AnalysisServices.Server | |
$server.Connect($serverName) | |
Write-Output ("`nServer: {0}`nEdition: {1}`nBuild: {2}" -f $server.Name, $server.Edition, $server.Version) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment