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