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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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