Hi!
I have come across a very peculiar problem with a task that simply updates HKCU, see action script and log below.
After testing and scratching my head, this is what it looks like:
The task completes successfully if:
- The BigFix agent installed on the Windows 10 PC was installed as some earlier version (customer startet at 9.5) and later upgraded to 1.0.8.37
- The BigFix agent was installed as version 10.0.8.37 and the currently logged-in user has been given full access to the BigFix agent directory (C:\Program Files (x86)\BigFix Enterprise\BES Client)
The task fails if:
- The BigFix agent installed on the Windows 10 PC was installed as version 1.0.8.37 and the logged-in user does not have access to the BigFix agent directory (normal setup)
When the task fails, reg.exe throws error code 9084 (found in file C:\Temp\ERRORLEVEL.log, see action script below).
What am I missing?
-------------- Action Script -------------------
// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}
delete __createfile
parameter “nameofcurrentuser” = "{name of current user as string}"
parameter “outsideOfClientFolder” = "C:\Users{parameter “nameofcurrentuser”}\AppData\Local\SWD_Download__Download"
folder delete "{parameter “outsideOfClientFolder”}"
folder create “{parameter “outsideOfClientFolder”}”
delete RUNREG.CMD
delete __Download\RUNREG.CMD
createfile until _end_RUNREG
reg.exe ADD “HKEY_CURRENT_USER\Software\SomeKey” /v SomeVariable /t REG_DWORD /d “1” /f
ECHO %ERRORLEVEL% > C:\Temp\ERRORLEVEL.log
_end_RUNREG
move __createfile __Download\RUNREG.CMD
waithidden cmd /C xcopy /Y /E “{pathname of client folder of current site}__Download” “{parameter “outsideOfClientFolder”}”
override wait
runas=currentuser
completion=job
hidden=true
wait "{parameter “outsideOfClientFolder”}\RUNREG.CMD"
parameter “returnCode” = “{exit code of action}”
-------------- Log -------------------
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:16959)
Command succeeded delete No ‘C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\CustomSite_CDS_Systems_Lifecycle__createfile’ exists to delete, no failure reported (action:16959)
Command succeeded parameter “nameofcurrentuser” = “arneh” (action:16959)
Command succeeded parameter “outsideOfClientFolder” = “C:\Users\arneh\AppData\Local\SWD_Download__Download” (action:16959)
Command succeeded folder delete “C:\Users\arneh\AppData\Local\SWD_Download__Download” (action:16959)
Command succeeded folder create “C:\Users\arneh\AppData\Local\SWD_Download__Download” (action:16959)
Command succeeded delete No ‘C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\CustomSite_CDS_Systems_Lifecycle\RUNREG.CMD’ exists to delete, no failure reported (action:16959)
Command succeeded delete __Download\RUNREG.CMD (action:16959)
Command succeeded createfile until (action:16959)
Command succeeded move __createfile __Download\RUNREG.CMD (action:16959)
Command started - waithidden cmd /C xcopy /Y /E “C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\CustomSite_CDS_Systems_Lifecycle__Download” “C:\Users\arneh\AppData\Local\SWD_Download__Download” (action:16959)
At 13:52:11 +0100 -
Report posted successfully
At 13:52:11 +0100 - actionsite (http://bigfixroot:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=0) waithidden cmd /C xcopy /Y /E “C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\CustomSite_CDS_Systems_Lifecycle__Download” “C:\Users\arneh\AppData\Local\SWD_Download__Download” (action:16959)
Command succeeded override wait (action:16959)
Command succeeded override runas=currentuser (action:16959)
Command succeeded override completion=job (action:16959)
Command succeeded override hidden=true (action:16959)
Command started - wait “C:\Users\arneh\AppData\Local\SWD_Download__Download\RUNREG.CMD” (action:16959)
Command succeeded (Exit Code=0) wait “C:\Users\arneh\AppData\Local\SWD_Download__Download\RUNREG.CMD” (action:16959)
Command succeeded parameter “returnCode” = “0” (action:16959)
At 13:52:11 +0100 -
ActionLogMessage: (action:16959) ending action