This Script Checks if SCOM 2012 R2 Infrastructure was upgraded to UR7.
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 UR7 Installation
3.) It checks file version in OpsMgr installation folder and displays all updated files.
You can download Script from Here.