Not able to copy a a file in Windows system 32 folder

Hi all,

I am trying to copy and paste one of the file form my main BigFix server to a remote system and the path are windows C:\Windows\System32 and C:\Windows\SysWOW64, an application team has an requirement.

We were successfully able to paste the file in C:\Windows\SysWOW64 but we are not able to paste in C:\Windows\System32.

Below are the method which i tried:

  1. By the software distribution method and simply extracting it the C:\Windows\System32 folder, the task gets completed in the console but the file is not there in the folder.

  2. We edited the same deployment and tried to copy it from the _Download folder to the system32 folder but the deployment failed.

  3. We even tried to move the file from the _Download folder to the system32 folder but it failed.

any help will be helpful.

Thanks in advance.
Regards,
KK

Please post the script you used.

HI @trn

please find the below actionscript:

prefetch ebad265695b06991c76c8e1fe0200463bb9f2706 sha1:ebad265695b06991c76c8e1fe0200463bb9f2706 size:121 http://Bigfixserver:52311/Uploads/ebad265695b06991c76c8e1fe0200463bb9f2706/SERIALNUMBER.txt.tmp sha256:85c6ed779206b5fb4465243bb113d0fa07f855d337355dffec16874c360064cc
extract ebad265695b06991c76c8e1fe0200463bb9f2706
copy “__Download\SERIALNUMBER.txt” “C:\Windows\System32\SERIALNUMBER.txt”

Your original question indicates that you have recognised that there are 32 & 64 bit versions of the system folder, but your script does not cater for that.

Remember - the Bigfix client is 32-bit, so 32-bit redirection is on by default.

You need to include the line

action uses wow64 redirection {not x64 of operating system}

somewhere before you do the copy to the 64-bit System32 folder

1 Like

Hi @trn Thanks for the reply as the deployment was very important i managed to use:

action uses wow64 redirection false

in my deployment and i was successfully able to do that.

I will use the shared line also.

Thanks once again,

Regards,
KK