tn_chinh Posted April 5, 2005 Posted April 5, 2005 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
un4given1 Posted April 5, 2005 Posted April 5, 2005 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.
tn_chinh Posted April 5, 2005 Author Posted April 5, 2005 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?
Raja Posted April 5, 2005 Posted April 5, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now