(imported topic written by dlimanov)
Hello,
As a part of SCCM 2012 upgrade, I was asked to whack two registry keys. “Piece of cake!” said me, and was wrong. I used the following article:
http://www-01.ibm.com/support/docview.wss?uid=swg21506061
and created this very simple action:
delete __appendfile
delete sccm.reg
appendfile REGEDIT4
appendfile
appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCMSetup]
appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS]
move __appendfile sccm.reg
waithidden regedit.exe -s sccm.reg
Running this in Relevance Debugger, I get the following “success”:
STATUS: Running action…
Command succeeded delete No ‘C:\Program Files (x86)\BigFix Enterprise\BES Client__appendfile’ exists to delete, no failure reported
Command succeeded delete No ‘C:\Program Files (x86)\BigFix Enterprise\BES Client\sccm.reg’ exists to delete, no failure reported
Command succeeded appendfile REGEDIT4
Command succeeded appendfile
Command succeeded appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCMSetup]
Command succeeded appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS]
Command succeeded move __appendfile sccm.reg
Command started - wait regedit.exe -s sccm.reg
Command succeeded (Exit Code=0) wait regedit.exe -s sccm.reg
Command started - waithidden regedit.exe -s sccm.reg
Command succeeded (Exit Code=0) waithidden regedit.exe -s sccm.reg
— Result —
Evaluation completed successfully!
However, the key is still there. Running this as a fixlet completes successfully, but keys are not deleted. Importing the same reg file from the command line using regedit.exe -s sccm.reg deletes the keys just fine. BESClient service is running under Local System, and I’ve not had any issues with permissions installing software or patches with its current authority level. OS is Win7 x64 with UAC off.
Any thoughts? What am I missing here?