Microsoft KB Archive/939896

= How to use the Process Monitor tool to generate a log file for an application in the SoftGrid virtual environment =

Article ID: 939896

Article Last Modified on 7/30/2007

-

APPLIES TO


 * Microsoft SoftGrid for Terminal Services
 * Microsoft SoftGrid for Windows Desktops

-



INTRODUCTION
This article describes how to use the Process Monitor tool (ProcMon.exe) to generate a log file for an application in the Microsoft SoftGrid virtual environment. The log file provides information about the files and about the registry keys that the application accesses while Process Monitor is running.



How to obtain Process Monitor
 Download Process Monitor. To do this, visit the following Microsoft Web site:

http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/processmonitor.mspx

 Click Download Process Monitor (913K), and then click Save. Save the file in a folder of your choice. Right-click the file that you downloaded, and then click Extract to. Specify where you want to extract the file, and then click Extract.

How to prepare Process Monitor

 * 1) In the folder to which you extracted the file, double-click the Procmon.exe file.
 * 2) Click Agree to accept the license terms.
 * 3) On the Options menu, click Enable Advanced Output.
 * 4) On the Edit menu, click Auto Scroll.
 * 5) On the File menu, click Exit to close Process Monitor.

How to prepare the SoftGrid virtual application
  When you troubleshoot an application, open the content share of the application, and then edit the .osd file of the application to add a cmd.exe command.

To do this, add the following lines after the <DEPENDENCY> tag. <SCRIPT EVENT=&quot;LAUNCH&quot; TIMING=&quot;PRE&quot; PROTECT=&quot;FALSE&quot; WAIT=&quot;TRUE&quot; TIMEOUT=”0”>

<SCRIPTBODY>cmd.exe</SCRIPTBODY>

</SCRIPT> </li> On the SoftGrid client computer, start the SoftGrid Client Management Microsoft Management Console (MMC) snap-in. If the application already exists under Applications, remove it so that the new .osd file is used the next time that you run the application.</li></ol>

How to generate the log file for the application

 * 1) On the SoftGrid client computer, start the SoftGrid virtual application.

When you do this, a command prompt appears on the desktop before the application starts.
 * 1) At the command prompt, type procmon.exe, and then press ENTER to start Process Monitor.
 * 2) Close the command prompt.

When you do this, Process Monitor starts.
 * 1) Reproduce the issue.
 * 2) On the File menu, click Save to save the Process Monitor log file.
 * 3) Under Events to save, click to select the All events check box.
 * 4) Under Format, click to select the Native Process Monitor Format (PML) check box.
 * 5) In the Path box, specify a location on the local hard disk where you want to save the file.

Keywords: kbexpertiseinter kbhowto kbinfo KB939896

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.