This Script Checks if SCOM 2012 R2 Infrastructure was upgraded to UR6.
1.) Script Gets, All Management Servers, Gateway Servers and Web Console Server
2.) Then it checks if there are event log entries which indicate Successful UR6 Installation
3.) It checks file version in OpsMgr installation folder and displays all updated files.
You can download Script from Here.