• That screenshot is a little hard to read, but if I am reading it correctly, you are using SQL 11 (ie 2012).
    What is the error right below the one you selected?
    The application error is likely caused by that MSSqlServerOLAPService error.

    But I agree with Sue, checking the Msmdsrv.log file (and any SQL log files you can find) will likely give you better insight to the problem.  msmdsrv.exe is the executable for SQL Server Analysis Services (SSAS).  So saying that that crashing is the cause of the service crashing is like saying that Excel.exe crashing is the cause of your Excel application crashing.
    I'm willing to bet that one of your SQL logs or one of the other windows logs (or events, like the one right below the highlighted one) will have more helpful information in it.

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.