domain users and HKEY_USERS
-
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
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
-
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
Take a look at the
LoadUserProfile
function. ThehProfile
member ofPROFILEINFO
parameter is a registry key handle opened to the root of the user's hive -
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
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
-
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
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.