I am trying to push out some registry tweaks late at night when most people will not be logged in to their computers. The problem is that I want the tweaks to be applied to HKCU. Could anybody tell me if there is a way to do this when there is no user currently logged in?
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


I would suggest to get the users SIDs from the following reg key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
and then make your changes under HKEY_USERS\<SID>
As soon as an user logs on to the system, Windows will copy the informations residing in HKEY_USERS\<Users SID> to HKEY_CURRENT_USERS

Remember that Windows will only store informations under HKEY_USERS from users which have been logged in at least once on the system.
Answered 11/03/2011 by: Teitan
Senior Purple Belt

Please log in to comment
You'll find it an order of magnitude easier to use Active Setup for this. That, after all, is what it was designed for.
Answered 11/03/2011 by: VBScab
Red Belt

Please log in to comment
Thanks for the advice. I looked into using Active Setup, but haven't been able to get too far. From what I can tell, I need to create an exe. What all needs to be contained in that? I am using an msi file and transforming it to do the installation, but then I would like to apply the tweaks. Do I need to include the msi/mst in the exe or can I just use the kbox to script the msi install and then run the exe with only the reg settings?
Answered 11/04/2011 by: horstj
Fourth Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity