I posted this question to an existing thread Hacking...er...Editing - HKEY_CURRENT_USER (remotely)... but then decided this is a better place for it.

Has anyone pulled a user SID with ADSI?

This is what I've been able to glean from the help file:
"The value specified in a filter is the encoded byte string representation of the SID. See the discussion of encoded byte strings in the preceding discussion of the OctetString syntax."

Once you've pulled the SID, how would would you convert it to the format that is used in HKU of the registry?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.