We have a VBScript that pulls the username from HKCU\Volatile Environment\USERNAME. This is great except when running the script as an admin. Then this value changes to the admin username.
Where/how can I get the ORIGINAL username that was logged in? I can't get it from HKEY_CURRENT_USER because the ADMIN account get swapped in from HKEY_USERS.