I was recently faced with a problem, I wanted needed CMTrace to read a logfile from one of my scripts on a computer that didn't have it. As a tangent, a friend of mine has a great logging script available here, it won't write in the CMTrace format by default but you can ask it to.
Anyway, CMTrace is a portable application so had I had access to a computer with Software Center installed the easiest way would have been to copy over the exe from there, it can be fount at C:\Windows\CCM\CMTrace.exe
I however didn't have any available at the time and needed to download it from the Internet, that's when I found the problem. Given that Microsoft now ships CMTrace with the MEMCM agent they no longer have it available for download online. I did find several websites and blogposts claiming to have it available for download but I wouldn't just trust an exe from a random guy on the internet and neither should you.
But hey you say now, why should I trust you then?
Simple answer, you shouldn't, but you can trust Microsoft when it comes to downloading their software. The difference with this post and the ones I found is that I won't link you a shady exe file, I will link you to a Microsoft download for MEMCM eval and tell you were to find CMTrace within it. So lets get going!
As I said, we will use the eval of MEMCM to get CMTrace, download the latest version here
https://www.microsoft.com/en-us/evalcenter/download-microsoft-endpoint-configuration-manager
I choose to open the exe file with 7zip but you can also just run it and it will unzip itself. Once you see the files within you simply go to SMSSETUP\Tools and there you will find it. Easy as cake!
Hope this was helpful for someone out there and as always, happy scripting!