Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
SCOM - Get Update Rollup Version
#Sick of manually tracking down the SCOM Update Rollup version? Me too! Run this on a management server to get the Update Rollup version
#Find SCOM install path
$SCOMDirectory = get-childitem -Recurse c:\*\Console | ? PSIsContainer | select -First 1
$SCOMDll = (get-item $SCOMDirectory\Microsoft.EnterpriseManagement.UI.Authoring.dll).VersionInfo.FileVersion
switch ($SCOMDll)
{
'7.0.9538.0' {'SCOM 2012 SP1 RTM'}
'7.0.9538.1005' {'SCOM 2012 SP1 UR1'}
'7.0.9538.1047' {'SCOM 2012 SP1 UR2'}
'7.0.9538.1069' {'SCOM 2012 SP1 UR3'}
'7.0.9538.1084' {'SCOM 2012 SP1 UR4'}
'7.0.9538.1106' {'SCOM 2012 SP1 UR5'}
'7.0.9538.1109' {'SCOM 2012 SP1 UR6'}
'7.0.9538.1117' {'SCOM 2012 SP1 UR7'}
'7.0.9538.1123' {'SCOM 2012 SP1 UR8'}
'7.0.9538.1126' {'SCOM 2012 SP1 UR9'}
'7.0.9538.1136' {'SCOM 2012 SP1 UR10'}
'7.1.10226.0' {'SCOM 2012R2 RTM'}
'7.1.10226.1011' {'SCOM 2012R2 UR1'}
'7.1.10226.1015' {'SCOM 2012R2 UR2'}
'7.1.10226.1037' {'SCOM 2012R2 UR3'}
'7.1.10226.1046' {'SCOM 2012R2 UR4'}
'7.1.10226.1052' {'SCOM 2012R2 UR5'}
'7.1.10226.1064' {'SCOM 2012R2 UR6'}
'7.1.10226.1090' {'SCOM 2012R2 UR7'}
'7.1.10226.1118' {'SCOM 2012R2 UR8'}
'7.1.10226.1177' {'SCOM 2012R2 UR9'}
Default {}
}
> SCOM 2012R2 UR7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment