Jump to content

Recommended Posts

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
Posted

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 ;)

Posted

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.

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...