Damn, I cannot make it work

To define a path for "current user desktop" instead of AllUsersDesktop on a remote client, I had to get it from HKEY_USERS registry and that specific users SID S-1-5-...
Not only that, I have to identify which SID in HKEY_USERS is the current logged on user.

How 2 do? Is there any other way?


_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"