Does anyone know of a scriptable way to change what hive is loaded into HKCU? There is a particular program that I need to run on startup that checks values in HKCU. However, I do not want to create a separate account or have it use the builtin Administrator account.
First things first.
You can't load in HKCU somethings different than the keys and values of HKU
If you modify a key in HKU this is reflected in HKCU.
I don't think this is possible. And if it is, it's a bad idea.
defines an item that should be run when the user logs in. You load that into your primary profile. But that profile has no access rights to the element defined in the registry. So it must fail. Or worse, it runs and deletes something of your primary profile.
This is a single, obvious conflict that will happen if you attempt this. I am sure there would be hundreds.
I could come up with a couple more points why this is a horrible idea. I'm sure you're approaching your problem the wrong way (or I simply misunderstood you).