I've got a logon script for our domain, it's quite big (ok so its almost 50KB) so i won't post it. My problem is that for one particular user group i need to set permissions on a particular key so that outlook can be used by other programs. How do i do this?

I've tried
If @PRIV="USER"
@PRIV="ADMIN"
WriteValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Security", "CheckAdminSettings", "00000001", "REG_DWORD")
@PRIV="USER"
Endif

doesn't work.
I've almost tried using a 3rd party program but the program needs admin rights to perform the action.

Is there a way i can get Kix to either switch PRIV level and run the key or actually get Kix to give the User Full control over that particular key so that the account can run the key?