April 5, 200521 yr Hi All,I want to get logged user name and all localgroups it belongs to from Registry. I'm using Windows 2000/Windows XP. Could you please help?Thanks
April 5, 200521 yr You can find username here...HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinlogonI'm not sure about groups (may be in the same key) but I can check tomorow when I am at the office.
April 5, 200521 yr Author Thanks,I didn't think we can get group info from registry, but I still hope Do you have experience dealing with this? Do you think using JavaScript/ActiveX/Applet is an option?
April 5, 200521 yr HiUsing VB or Java script will give you the flexibility of getting the result the way you want it. Alternatively you can use net user command in a batch file.Try as below and see if u can use it successfully for ur need;Net user %USERNAME%|Find "*"|Find /v "Global Group"Cheers
Create an account or sign in to comment