Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Hi,

 

I have a robocopy script i run during OSD to copy some wallpapers to the C:\Windows\System32\oobe\info\backgrounds\ folder so they are on the login screen. Its in a package. It works a treat for x86 Windows 7. However for Windows 7 x64 it doesn't work at all during OSD, the files are not in the destination folder. It does work if i run the script manually after imaging.

 

This is a copy of my code from the batch file

 

robocopy "Logon Screen Wallpapers" "C:\Windows\System32\oobe\info\backgrounds" /mir

 

I decided to output to a log file to see whats going on, but this made things more confusing. It shows that the files have been copied when they haven't. I have put the log output below.

 

Any ideas please?

 

Thanks


-------------------------------------------------------------------------------
  ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

 Started : Fri Dec 14 21:37:43 2012

  Source : C:\_SMSTaskSequence\Packages\FAL0008B\Logon Screen Wallpapers\
    Dest : C:\Windows\System32\oobe\info\backgrounds\

   Files : *.*
       
 Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30

------------------------------------------------------------------------------

     New Dir         10    C:\_SMSTaskSequence\Packages\FAL0008B\Logon Screen Wallpapers\
       New File             81845    background1024x768.jpg  0%  100%  
       New File            131071    background1280x1024.jpg  0%  100%  
       New File             87995    background1280x768.jpg  0%  100%  
       New File            119397    background1280x960.jpg  0%  100%  
       New File             91076    background1360x768.jpg  0%  100%  
       New File            113028    background1400x900.jpg  0%  100%  
       New File            175821    background1600x1200.jpg  0%   74%  100%  
       New File            184930    background1920x1200.jpg  0%   70%  100%  
       New File             81845    backgroundDefault.jpg  0%  100%  
       New File             54784    Thumbs.db  0%  100%  

------------------------------------------------------------------------------

              Total    Copied   Skipped  Mismatch    FAILED    Extras
   Dirs :         1         1         0         0         0         0
  Files :        10        10         0         0         0         0
  Bytes :    1.06 m    1.06 m         0         0         0         0
  Times :   0:00:00   0:00:00                       0:00:00   0:00:00


  Speed :            74786133 Bytes/sec.
  Speed :            4279.296 MegaBytes/min.

  Ended : Fri Dec 14 21:37:43 2012

Posted

If you have one of the pcs it says it's copied it across on, check inside SysWow64 rather than System32. Generally any 32bit application that runs will get redirected there. If that is the case can be changed in code to sort it, but worth checking first.

 

Steve

Posted

You could probably do it two ways, either force run the 64bit version, and use a wrapper to your old bat. But as I said, it might be robocopy thats running as 32bit. Can't really tell without trying.

 

Or in SCCM there should be an option... *runs to google*

 

Disable 64-bit file system redirection 
By default, when running on a 64-bit operating system, the executable in the command line is located and run using the WOW64 file system redirector so that 32-bit versions of operating system executables and DLLs are found.  Selecting this option disables the use of the WOW64 file system redirector so that native 64-bit versions of operating system executables and DLLs can be found.  Selecting this option has no effect when running on a 32-bit operating system. 

 

If you do it as a command line task seqeuence.

 

Steve

Posted
If you do it as a command line task seqeuence

 

Thee is other stuff in the script as well, one so it reports the correct exit code.

 

Or in SCCM there should be an option... *runs to google*

 

Do you still have the link please? Just wondering where in SCCM it is.

 

You could probably do it two ways, either force run the 64bit version, and use a wrapper to your old bat. But as I said, it might be robocopy thats running as 32bit. Can't really tell without trying.

 

Can we try this? What would one do?

 

Thanks

Posted

Use the 32-bit Command Prompt on 64-bit Windows to copy files to the 'SysNative' folder. e.g.

 

%SystemRoot%\SysWoW64\cmd.exe /c robocopy "C:\_SMSTaskSequence\Packages\FAL0008B\Logon Screen Wallpapers" "%SystemRoot%\[color="#FF0000"]SysNative[/color]\oobe\info\backgrounds" /mir

 

I have just tested it and it works. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...