Import "nt.bas"
print nt::RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\SessionData\\1\\LoggedOnUser")
->undef<-
Hi
How to obtain the user name in Windows 10 that is currently active?Code: [Select]Import "nt.bas"
print nt::RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\SessionData\\1\\LoggedOnUser")
->undef<-
I need to retrieve this registry key ["LoggedOnUser"]
thanks for your help
I'm curious if you ran your test registry script as admin would you get the same results?
I don't have Windows 10 to test this. Are you sure the registry key you are after is is really there? Can you access any other registry keys?