Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to use the Process Monitor tool to generate a log file for an application in the App-V (SoftGrid) virtual environment


View products that this article applies to.

INTRODUCTION

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. 

↑ Back to the top


More Information

How to obtain Process Monitor

  1. Download Process Monitor. To do this, visit the following Microsoft Web site:
  2. Click Download Process Monitor (913K), and then click Save.
  3. Save the file in a folder of your choice.
  4. Right-click the file that you downloaded, and then click Extract to.
  5. 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 App-V (SoftGrid) virtual application

  1. 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">
    <SCRIPTBODY>cmd.exe</SCRIPTBODY>
    </SCRIPT>
  2. 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

  1. 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.
  2. At the command prompt, type procmon.exe, and then press ENTER to start Process Monitor.
  3. Close the command prompt.

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

↑ Back to the top


Keywords: kbexpertiseinter, kbhowto, kbinfo, kb

↑ Back to the top

Article Info
Article ID : 939896
Revision : 2
Created on : 8/1/2019
Published on : 8/1/2019
Exists online : False
Views : 330