Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. domain users and HKEY_USERS

domain users and HKEY_USERS

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    ky_rerun
    wrote on last edited by
    #1

    is there a way to change values of domain users HKEY_CURRENT_USERS key on a particualr machine while that user is not logged on.


    a programmer traped in a thugs body

    D G 2 Replies Last reply
    0
    • K ky_rerun

      is there a way to change values of domain users HKEY_CURRENT_USERS key on a particualr machine while that user is not logged on.


      a programmer traped in a thugs body

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      How will the HKCU hive exist if there is no current user? Perhaps you'll want to update the HKU hive instead.


      "Take only what you need and leave the land as you found it." - Native American Proverb

      K 1 Reply Last reply
      0
      • K ky_rerun

        is there a way to change values of domain users HKEY_CURRENT_USERS key on a particualr machine while that user is not logged on.


        a programmer traped in a thugs body

        G Offline
        G Offline
        Graham Bradshaw
        wrote on last edited by
        #3

        Take a look at the LoadUserProfile function. The hProfile member of PROFILEINFO parameter is a registry key handle opened to the root of the user's hive

        1 Reply Last reply
        0
        • D David Crow

          How will the HKCU hive exist if there is no current user? Perhaps you'll want to update the HKU hive instead.


          "Take only what you need and leave the land as you found it." - Native American Proverb

          K Offline
          K Offline
          ky_rerun
          wrote on last edited by
          #4

          If you have a local user its current user comes from one the HKU key. However we don't have roaming profiles in our environment but a domain user can log onto a machine make changes to his HKCU values and it is retained however if I'm logged on as an admin I can't find a key under HKU tat corresponds to that user.


          a programmer traped in a thugs body

          B 1 Reply Last reply
          0
          • K ky_rerun

            If you have a local user its current user comes from one the HKU key. However we don't have roaming profiles in our environment but a domain user can log onto a machine make changes to his HKCU values and it is retained however if I'm logged on as an admin I can't find a key under HKU tat corresponds to that user.


            a programmer traped in a thugs body

            B Offline
            B Offline
            Blake Miller
            wrote on last edited by
            #5

            My guess is that the registry hive for the user on the domain is located on a server somewhere, in which case you need a remote registry connection and look for user profile on the domain controller or other system containing the information. If a 'domain' user logs onto a local system and he has not been added to that local system explicitly, his prfile is probably temporary while he is logged in and thus not found within the registry of the current (local) system.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups