Jump to content

Recommended Posts

Posted

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


Posted

You can find username here...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

I'm not sure about groups (may be in the same key) but I can check tomorow when I am at the office.

Posted

Thanks,

I didn't think we can get group info from registry, but I still hope :D

Do you have experience dealing with this? Do you think using JavaScript/ActiveX/Applet is an option?

Posted

Hi

Using 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...