Tracing and debugging interactive user sessions is one thing, but how do you trace a batch job in a tier two SAT environment? Here's a high level how:
- If the environment has multiple AOSes, assign the batch job to a batch group that only contains one server
- RDP into the server from 
- Create a provider file for Logman to run against
- Open CMD as Administrator and start the trace
- End the trace
A provider file is a file listing multiple Event Trace providers to enable. The file should be a text file containing one provider per line. When we start the trace, we will pass the txt file location as a parameter. For D365 traces, it should look like:
Here is an example of the CMD commands to run the actual trace. As soon as the start command completes, the ETL will be created in the file, where you can watch it grow in real time. If you're running multiple traces, be sure to name the output etl file something new each time. The -pf parameter is how we tell the trace to use the provider file we made earlier. In this case, I also specify for the trace file to have a 4GB cap and stop the trace. There is a stop command to explicitly stop the trace as well.
Once the ETL is generated, it can be imported into Trace Parser just like any other.