LabVIEW Error 603 Reading Registry Keys After Upgrade to Windows 7

Updated Jan 25, 2023

Reported In


  • LabVIEW

Operating System

  • Windows

Issue Details

I'm reading registry values and am getting error 603 after moving my code from Windows Server 2003 to Windows 7. I was previously looking for "logon user name" key located at the following path using regedit.exe:

HKEY_CurrentUser\Software\Microsoft\Windows\Current Version\Explorer\logon user name

In Windows 7, it looks like this path/registry key does not exist. Where is the "logon user name" key now?


Microsoft changed the registry layout between Windows Server 2003 and Windows 7. In Windows 7 the registry path for the user name registry key is the following:

HKEY_CurrentUser\Volatile Environment\USERNAME

Modify your registry read function to look similar to the block diagram below. 

Additional Information

A similar error can occur when upgrading to Windows 10. NI does not have detailed information on each and every registry key change that has occurred between the various versions of Windows. This kind of request for a different registry key should be directed to Microsoft support as they will have better knowledge of where specific keys might be located.