View Full Version : Looking 4 users name in multi OS's
Bruce
05-25-2002, 12:18 AM
Hello all-
How can I look for a users name in Windows 95-XP?
Thanks
Bruce
Hi,
If you want the registered owner use the build in variable %RegOwner%, or try looking in the registry, under: HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Logon User Name
mark.
Bruce
05-28-2002, 08:25 AM
Hello Mark-
I tried this, it only works for XP. I need all windows OS's
Hi,
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Logon User Name will probably work on any Windows NT, 2000, and XP machine. Have you tried using the %RegOwner% built-in variable? Did that provide you with the functionality that you want?
What User Name are you looking for in Windows 95?
You also might try looking under:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\CurrentUser
That appears to work under Windows 98. You might have to read the User Name from different retgistry keys for different operating systems.
mark.
Bruce
06-03-2002, 08:44 AM
Mark-
"Have you tried using the %RegOwner% built-in variable?"
How do I find this built-in variable?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.