+ Post New Thread
Results 1 to 7 of 7
O/S Deployment Thread, Windows 7 Script To Deploy Logon Wallpapers During OSD x64 in Technical; 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 ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,767
    Thank Post
    840
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442

    Windows 7 Script To Deploy Logon Wallpapers During OSD x64

    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
    Code:
    -------------------------------------------------------------------------------
       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

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    333
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    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

  3. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,767
    Thank Post
    840
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    @Steve21 you are 100% correct!

  4. #4

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    333
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    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*

    Code:
    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

  5. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,767
    Thank Post
    840
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    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

  6. #6


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,708
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    Use the 32-bit Command Prompt on 64-bit Windows to copy files to the 'SysNative' folder. e.g.

    Code:
    %SystemRoot%\SysWoW64\cmd.exe /c robocopy "C:\_SMSTaskSequence\Packages\FAL0008B\Logon Screen Wallpapers" "%SystemRoot%\SysNative\oobe\info\backgrounds" /mir
    I have just tested it and it works.

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,767
    Thank Post
    840
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Thanks @Arthur that did the trick

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 18
    Last Post: 12th September 2013, 05:44 PM
  2. Replies: 16
    Last Post: 6th December 2012, 11:37 AM
  3. Replies: 17
    Last Post: 18th June 2010, 12:48 PM
  4. Replies: 0
    Last Post: 22nd February 2008, 11:26 AM
  5. Replies: 16
    Last Post: 2nd December 2007, 01:09 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •