Sign in to follow this  
Followers 0
sam ghost

how to get windows xp user-id?

4 posts in this topic

#1 ·  Posted (edited)

hi,

can i get the windows xp user-id of the current logged on user? like this:

HKEY_USERS\S-1-5-21-1229272821-573735546-725345543-1007

thank you for helping me.

so long

sam

ps: sorry for my bad english ...

Edited by sam ghost

Share this post


Link to post
Share on other sites



if you read the help file you will find @Username, you don't need to read the registry, plz do abit more reading in the Help file, AutoIt forum ppl are very helpful as long as you do your homework first ;)

Share this post


Link to post
Share on other sites

Welcome to the forums Sam!

If you want the ID as found in the registry (e.g. S-1-5-21-1606980848-682003330-1177238915-1003) then you could try writing some temporary value to HKEY_CURRENT_USER, and then search for that value in the HKEY_USERS tree. You can use the RegWrite(), RegEnumKey() and RegRead() functions for this.

Just out of curiosity, why are you requesting this data? I have never found any use for it.

Share this post


Link to post
Share on other sites

hi,

thank you for the answers.

i found another program that solves my problem.

thx

sam

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0