Hello,
I have a quick question. Where can I find which version of Orion SDK that is installed?
Many thanks.
From the Windows Start menu, type "Apps & features" (or "Add or remove programs", which is still how I think of it). Once you're in Apps & features in the System Settings, type "Orion SDK" in the search bar. You should see an entry for the SolarWinds Orion SDK with a version number and the date it was installed.
You can also query the local machine for the apps that are installed and filter for the SDK.
$AppFilter = "*Orion SDK*"$Apps = @()$Apps += Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object { $_.DisplayName -like $AppFilter } # 32-bit apps$Apps += Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object { $_.DisplayName -like $AppFilter } #64-bit apps$Apps | Select-Object -Property DisplayName, DisplayVersion, Publisher, InstallDate
Alternatively, if you know it's installed, you can ask the file itself about the version.
Get-Item "${env:ProgramFiles(x86)}\SolarWinds\Orion SDK\SWQL Studio\SwqlStudio.exe" | Select-Object -Property @{ Name = 'Product'; Expression = { $_.VersionInfo.FileDescription } }, @{ Name = 'Version'; Expression = { $_.VersionInfo.FileVersion } }
If you are playing with PowerShell, then you'll probably also want to check the SwisPowerShell module version.
Get-Module -ListAvailable -Name SwisPowerShell
Or yes - you can also do it the way @dan_jagnow said.