Issue with importing/exporting registry task

(imported topic written by carroll91)

I have created a simple task in BF to import a registry key to assets in my company - there are 1500. I export the registry key to my C: drive and imported it using the BF registry task wizard. When I run the task it fails eventhough it looks very straight forward. When I do a manual import of the reg key outside of BF it is successful. I have attached my relevance and action script. I am hoping someone will be able to notice what I may be doing that causes the failure. Thanks!

(name of operating system = “WinXP” OR name of operating system = “WinXP-2003”) AND (TRUE)

action uses wow64 redirection false

download http://bigfix.bcferries.corp:52311/Uploads/55a2d7439b941db6157e5036f5fbefee2dac27a7/Passlogix%20Registryreg.tmp

continue if {(size of it = 7536801 AND sha1 of it = “55a2d7439b941db6157e5036f5fbefee2dac27a7”) of file “Passlogix Registryreg.tmp” of folder “__Download”}

extract Passlogix Registryreg.tmp

waithidden regedit /s “{pathname of client folder of current site & “__Download\Passlogix Registry.reg”}”

(imported comment written by Jim23)

Where does it fail? Downloading the file or running regedit? What branches are you trying to edit with the reg file?

If it fails during the download, then make sure the file is in the BigFix cache (should have been imported from the wizard).

  • Check that you can download the .tmp file from your client machine

If it fails during the regedit command it may be a permissions issue and you may need to use “runascurrentuser.exe” (i.e. you are trying to edit HKEY_CURRENT_USER branch)

For example:

prefetch RunAsCurrentUser.exe sha1:a72371f4e968da7ead24f0f4e68c14b234ac94f6 size:184320 http://support.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.exe

utility __Download\RunAsCurrentUser.exe

waithidden __Download\RunAsCurrentUser.exe regedit /s temp.reg

(imported comment written by NoahSalzman)

Which hive is “Passlogix Registryreg.tmp” modifying? HKLM? HKCU?

As it says

here

:

“HKEY_CURRENT_USER values for the logged in user cannot be set because the BigFix Client runs as the SYSTEM account. You can set specific user valuse by using the HKEY_USERS registry branch.”

(imported comment written by carroll91)

I am trying to modify the HKLM with the task. I used the registry wizard to set it up.

This is the failure messge:

The action failed.

This action has been applied 1 time and will not be applied again.

Status Failed

Start Time 09-09-15 4:27:45 PM

End Time 09-09-16 3:04:35 AM

Action Script Execution Detail

Completed action uses wow64 redirection false

Completed download http://bigfix.bcferries.corp:52311/Uploads/55a2d7439b941db6157e5036f5fbefee2dac27a7/Passlogix%20Registryreg.tmp

Failed continue if {(size of it = 7536801 AND sha1 of it = “55a2d7439b941db6157e5036f5fbefee2dac27a7”) of file “Passlogix Registryreg.tmp” of folder “__Download”}

extract Passlogix Registryreg.tmp

waithidden regedit /s “{pathname of client folder of current site & “__Download\Passlogix Registry.reg”}”

Thanks.

Carroll.