Am trying to write a kix script that does several registry modifications (in NT 4). The problem I am running into is that the script works for an administrator user but it bombs for an ordinary user. Am getting an insuffecient permission error.

Is there any way to give an ordinary user admin privs on the fly? Thought about using SU.exe but the key I need to modify is HKCU. When I invoke SU, I get a totally different HKCU. Need to save the user's old Outlook profile to a file before I delete it and install the MS new exchange profile. Plus am setting various Outlook defaults.

Saw an idea that may work:
1. $variable = @USERID
2. SU
3. savekey ("HKU\$variable\software\.....

Thoughts?

Alternative:
Can some tell me the syntax for invoking SU so it gives admin rights and retains the user's HKCU hive?

Option three:
Also anyone hear of a small exe the will modify the user's security token on the fly?

I find this problem real weird as regedit will do all the stuff I wnat to do manually without the weird permission problems.

Appreciate your/any ideas/thoughts on this problem. I'm at a real brick wall on this one.

Grant.