Summary
This article describes how to collect system startup traces with the Microsoft utility Tracelog.
Procedure
1. You must have the Windows 2000 Tracelog.exe utility from Microsoft. The default installation is to C:\Program Files\Resource Kit\. Click here for Windows 2003 tracelog.exe.
Notes: Running the Windows 2000 tracelog.exe utility on a Windows 2003 will result in Tracelog.exe causing a Dr. Watson error. Some tips for extracting the Windows 2003 tracelog utility can be found here. The Tracelog.exe utility can be copied to any directory of your choosing.
2. Create a .ctl file using the CDFControl Tool CTX111961 – CDFControl or using the registry values from the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\Tracing\Modules
Place the .ctl in the same directory as the tracelog.exe file.
Note: The .zip file attached to this document contains a few example .ctl files created for MetaFrame XP, MetaFrame Presentation Server 3.0 and Citrix Presentation Server 4.0.
3. Create a .cmd file with the following example:
<yourpath>\tracelog -start trace -f <yourpath>\trace.etl -guid <yourpath>\GUIDMPS3HRP05.ctl -level 16 -flag 0xFFFFFF
where GUIDMPS3HRP05.ctl = <yourctlfilename>.ctl created in step 2.
Example: "C:\Program Files\Resource Kit\tracelog" -start trace -f c:\trace.etl -guid "C:\Program Files\Resource Kit\CDFCommand.ctl" -level 16 -flag 0xFFFFFF
4. Create a policy, gpedit.msc, to run the .cmd file created in Step 3 at startup.

5. Once the server has restarted and you have collected the data, issue the following command:
tracelog -stop trace
6. Citrix recommends creating a stop.cmd file with the previous content to reduce the trace size.
Example: "C:\Program Files\Resource Kit\tracelog" -stop trace
7. This process generates an .etl file that should be analyzed using the appropriate .tmf files.
More Information
The example .ctl files attached to this document trace all the modules. If you are interested in tracing only a few modules, modify the files accordingly or contact Citrix Technical Support for help.
Alternatively, you could collect startup traces from a MetaFrame server using the method described in CTX107025 – How to Collect System Startup Traces with the Common Diagnostic Facility.
Exporting an XML trace settings file is described in article CTX104578 – Using Citrix Diagnostic Facility and the Access Suite Console for Tracing
CTX114975 – Common CDF Templates for Troubleshooting