I have a Windows service that needs to access registry hives under HKEY_USERS when users log on, either locally or via Terminal Server. I\'m using a WMI query on win32_logon
Another simple way: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion \ProfileList