How to Trace the IIS Admin Service

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

Use the following procedure to trace the IIS Admin service if the service fails to startup or shutdown. IIS Admin tracing uses the following parameters:

logman start

Starts the trace session using Logman.exe as the controller.

logman stop

Stops the trace session.

session name

Any name you want to give this trace session.

-p “IIS: IISADMIN Global”

Identifies which provider (-p) should be traced.

(startup,shutdown)

Tells Logman.exe to trace the IIS Admin service for startup and shutdown events. You can specify one or both flags, as needed.

-ets

Tells Logman.exe to start the trace session immediately.

To trace the IIS Admin service

  1. From a command prompt, type logman start session name -p “IIS: IISADMIN Global”(startup,shutdown) -ets and press ENTER.

    For example: logman start IISAdminTrace -p “IIS: IISADMIN Global” (startup,shutdown) -ets

  2. Event Tracing for Windows prints to the screen details about the trace session you just started, including the name of the session, the file name where the trace data will be collected (session name.etl by default), and whether or not the command was successful.

  3. If necessary, start or stop the IIS Admin service (depending on the nature of the problem you are trying to troubleshoot). Type net stop IIS Admin or net start IIS Admin and press ENTER.

  4. Allow the trace session to run until you have reproduced the problem.

  5. From the command prompt, type logman stop session name -ets and press ENTER.

    To view the trace data, see How to Process IIS Admin Trace Log Files Using Trace Report.

See Also

Other Resources

Tracing Startup and Shutdown Problems in the IIS Admin Service