in reply to Win32::TieRegistry with remote CUser?

Did you try/test this? I see nothing particularly special about CUser when accessed remotely. Now it might not be there or might not be who you expected, depending on what users have "logged in" (which doesn't always involve logging into the desktop) in what order.

You could also go the "Users" key route which requires finding SIDs, etc. (yuck) or, look up things in "LMachine/System/CurrentControlSet/Control/hivelist/" and hope the "profile" name closely matches the username.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Win32::TieRegistry with remote CUser?

Replies are listed 'Best First'.
Re: (tye)Re: Win32::TieRegistry with remote CUser?
by the_slycer (Chaplain) on May 25, 2001 at 23:03 UTC
    I did test this, I can read the CUser keys, but I cannot change/create/delete them. Not a rights issue - I have them. Profile name will be the exact same as the username, so I may have some luck with that.
    Thanks

      Profile name will be the exact same as the username

      Be careful with that assumption there. I guess you've never had a corrupted user profile or had a user's name changed (don't your employees ever get married?). The profile name might be "SmithGE.001" instead of "JonesGE" if you run into just the two problem that I have personally run into.

              - tye (but my friends call me "Tye")
        Actually our usernames == employee number so the marriage name change thing doesn't happen. I haven't seen a corrupted profile since we flipped to win2k - as surprising as that may be, but true.

      I even tested deleting and it works for me. Not being a domain admin it wasn't convenient for me to test the case of the user with admin privs accessing remotely being different than the logged in user.

              - tye (but my friends call me "Tye")