Skip to content

Instantly share code, notes, and snippets.

@yorek
Created July 9, 2014 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorek/c3c2a8e6a44aee01a425 to your computer and use it in GitHub Desktop.
Save yorek/c3c2a8e6a44aee01a425 to your computer and use it in GitHub Desktop.
Detects Analysis Services Version and Edition
[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