Udostępnij za pośrednictwem


Userenvlog for Windows Vista/2008/Win7

If  you like the userenvlog from Windows XP, you may want to know how to get more information from the GPSVR service in Windows 2008/Visa/Win 7.  If so then try this:

How to enable logging in the Gpsvc.log file To enable logging in the Gpsvc.log file, follow these steps. Click Start, click Run, type regedit, and then click OK.

  1.  Make sure that you have the folder %windir%\debug\usermode, if the usermode folder is not there, then manually create it.
  2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
  3.  On the Edit menu, point to New, and then click Key.
  4.  Type Diagnostics, and then press ENTER.
  5.  Right-click the Diagnostics subkey, point to New, and then click DWORD Value.
  6.  Type GPSvcDebugLevel, and then press ENTER.
  7.  Right-click GPSvcDebugLevel, and then click Modify.
  8.  In the Value data box, type 30002 (as hex), and then click OK.
  9.  Exit Registry Editor.
  10.  At a command prompt, type the following command, and then press ENTER: gpupdate /force
  11. . View the Gpsvc.log file in the following folder: %windir%\debug\usermode

These details can be found at the bottom of https://support.microsoft.com/kb/944043.

Comments

  • Anonymous
    January 01, 2003
    yes, the 0x just lets you know that it is in hex :) sorry, I will edit the post and remove the 0x.  Thanks for pointing that out :)

  • Anonymous
    January 01, 2003
    i can't type "0x30002" in the value. it won't take an x. is "30002" good enough?

  • Anonymous
    January 01, 2003
    Is Reboot necessary to complete the whole procedure?

  • Anonymous
    January 03, 2013
    I needed a reboot before the log got created.

  • Anonymous
    February 25, 2014
    It appears that if you manually create the usermode folder, a reboot is not necessary.

  • Anonymous
    May 19, 2014
    Pingback from XenApp Profile Optimization | The Citrix Guru

  • Anonymous
    June 01, 2014
    Hi My name is Lakshman Hariharan and I work for Microsoft as a Premier Field Engineer supporting Active

  • Anonymous
    August 27, 2014
    I just created the folder manually and proceeded as instructed, no reboot was required.

  • Anonymous
    October 15, 2014
    The DWORD should be 32Bit. A 64Bit didn't work for me although I use a 64Bit W7.

  • Anonymous
    October 01, 2015
    Follow and able to produce logs

  • Anonymous
    October 08, 2015
    A host of reference material for AD and Group Policy

  • Anonymous
    November 30, 2015
    @EuRo, DWORD is 32bit, a QWORD is 64bit. He said a DWORD.

  • Anonymous
    December 02, 2015
    I failed to first create the Key "Diagnostics", then you need to create the DWORD subkey in there. The decimal value for 0x3002 is 196610. Lastly, if the "usermode" directory does not exist under c:windowsdebug" you need to create it. You do not need to reboot the system, just need to run gpupdate /force.

    Hopefully, this helps someone! It worked for me.