Mark Empson's Global notepad

Platforms and Active Directory Resources.

Userenvlog for Windows Vista/2008/Win7

Userenvlog for Windows Vista/2008/Win7

  • Comments 11
  • Likes

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


  • I needed a reboot before the log got created.

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

  • 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 :)

  • Is Reboot necessary to complete the whole procedure?

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

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

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

  • Follow and able to produce logs

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment