This article describes how to use the Process Monitor tool (ProcMon.exe) to generate a log file for an application in the Microsoft App-V (SoftGrid) virtual environment. The log file provides information about the files and about the registry keys that the application accesses when Process Monitor is running.
How to obtain Process Monitor
- Download Process Monitor. To do this, visit the following Microsoft Web site:
- 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
- In the folder to which you extracted the file, double-click the Procmon.exe file.
- Click Agree to accept the license terms.
- On the Options menu, click Enable Advanced Output.
- On the Edit menu, click Auto Scroll.
- On the File menu, click Exit to close Process Monitor.
How to prepare the App-V (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="LAUNCH" TIMING="PRE" PROTECT="FALSE" WAIT="TRUE" TIMEOUT="0">
- On the App-V (SoftGrid) client computer, start the App-V (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.
How to generate the log file for the application
- On the App-V (SoftGrid) client computer, start the App-V (SoftGrid) virtual application.
Note When you do this, a command prompt appears on the desktop before the application starts.
- At the command prompt, type procmon.exe, and then press ENTER to start Process Monitor.
- Close the command prompt.
Note When you do this, Process Monitor starts.
- Reproduce the issue.
- On the File menu, click Save to save the Process Monitor log file.
- Under Events to save, click to select the All events check box.
- Under Format, click to select the Native Process Monitor Format (PML) check box.
- In the Path box, specify a location on the local hard disk where you want to save the file.