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


Comments (13)
  1. Mark Empson says:

    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 🙂

  2. John_Curtiss says:

    i can't type "0x30002" in the value. it won't take an x. is "30002" good enough?

  3. Nipun Garg says:

    Is Reboot necessary to complete the whole procedure?

  4. paul says:

    I needed a reboot before the log got created.

  5. paul says:

    It appears that if you manually create the usermode folder, a reboot is not necessary.

  6. Anonymous says:

    Pingback from XenApp Profile Optimization | The Citrix Guru

  7. Anonymous says:

    Hi My name is Lakshman Hariharan and I work for Microsoft as a Premier Field Engineer supporting Active

  8. Cesar says:

    I just created the folder manually and proceeded as instructed, no reboot was required.

  9. EuRo says:

    The DWORD should be 32Bit. A 64Bit didn’t work for me although I use a 64Bit W7.

  10. Rakesh says:

    Follow and able to produce logs

  11. anonymouscommenter says:

    A host of reference material for AD and Group Policy

  12. John says:

    @EuRo, DWORD is 32bit, a QWORD is 64bit. He said a DWORD.

  13. ITMadeEZ says:

    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.

Comments are closed.

Skip to main content