Copy error failed (3)

(imported topic written by var91)

Hi @all,

i want to change the backgroundDefault.jpg for the LogonUI, but the the copy syntax not work.

This is my fixlet:

download http://atbigfixsr01:52311/Uploads/0eee0137fd1219bcf32367aaea52e9e810f8a148/backgroundDefaultjpg.tmp

continue if {(size of it = 246468 AND sha1 of it = “0eee0137fd1219bcf32367aaea52e9e810f8a148”) of file “backgroundDefaultjpg.tmp” of folder “__Download”}

extract backgroundDefaultjpg.tmp

copy “__Download\backgroundDefault.jpg” “C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg”

I always get this error:

STATUS: Running action…

Command succeeded (Using download manager collected file) download http://atbigfixsr01:52311/Uploads/0eee0137fd1219bcf32367aaea52e9e810f8a148/backgroundDefaultjpg.tmp

Command succeeded (evaluated true) continue if {(size of it = 246468 AND sha1 of it = “0eee0137fd1219bcf32367aaea52e9e810f8a148”) of file “backgroundDefaultjpg.tmp” of folder “__Download”}

Command succeeded extract backgroundDefaultjpg.tmp

Command failed (Copy of ‘__Download\backgroundDefault.jpg’ to ‘C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg’ failed (3)) copy “__Download\backgroundDefault.jpg” “C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg”

  • Result —

Evaluation failed!

What am I doing wrong?

Thanks Andi

1 Like

(imported comment written by NoahSalzman)

Is the file named backgroundDefaultjpg or backgroundDefault.jpg?

(imported comment written by MattBoyd)

Are you replacing an existing file? You could try this:

extract backgroundDefaultjpg.tmp
delete C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg
copy “__Download\backgroundDefault.jpg” “C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg”

I have a task that does this, but I chose to do it with xcopy for a reason that I can’t remember

extract Win7Background.tmp
dos echo F | xcopy __Download\Win7Background.jpg \Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg /Y /E

By the way, the background won’t change until someone logs on (or is currently logged on) and then logs off or locks the screen. A reboot works too.