Can not add new reg key in HKCU

(imported topic written by gaurav4tivoli)

I wrote a custom fixlet to add a key in “HKEY_CURRENT_USER” under “.DEFAULT”

delete __appendfile

delete temp.reg

appendfile REGEDIT4

appendfile

http://HKEY_USERS.DEFAULT

appendfile “abc”=dword:00000001

copy __appendfile temp.reg

wait regedit /s temp.reg

Status says “Completed”

But It did not add key “abc”

However i am writing the same script for HKLM and HKU

and its working fine

delete __appendfile

delete temp.reg

appendfile REGEDIT4

appendfile

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\AGP

appendfile “abc”=dword:00000001

copy __appendfile temp.reg

wait regedit /s temp.reg

Please help me for this

(imported comment written by Lee Wei)

Since the TEM Agent runs as SYSTEM, changing the current user registry hive needs a little more coaxing.

Please refer to these posts for more information.

http://forum.bigfix.com/viewtopic.php?id=1909

http://forum.bigfix.com/viewtopic.php?id=6045