Answered Background!!

  • Wednesday, November 18, 2009 3:21 PM
     
     
    Not sure if this is a MDT question or not but I am trying to acheive this as part of my deployment image!

    I need to change the default background colour of my Windows 7 deployment.  I have tried the CopyProfile switch to no avail.

    Is there a registry key or Group Policy Object I can use to do this?

    I need this set the same for ALL users of the imaged PC so that our corporate Logo will show correctly.

    This is the background colour of the desktop not the logonUI.

    Any thoughts?
    Rob

All Replies

  • Thursday, November 19, 2009 2:16 AM
    Moderator
     
     Answered

    One possiblity is to add the following script to your deployment:

    TakeOwn.exe /F %SystemRoot%\Web\Wallpaper\Windows\img0.jpg
    icacls %SystemRoot%\Web\Wallpaper\Windows\img0.jpg /reset
    rename %SystemRoot%\Web\Wallpaper\Windows\img0.jpg img0.jpg.bak
    copy /y <Path>\NewBackgroundBMP.jpg %SystemRoot%\Web\Wallpaper\Windows\img0.jpg

    This will replace the default Win7 background with whatever you want. And will appear in all new profiles created locally.

    Or perhaps group policy?


    Keith Garner (KeithGa.com) - Deployment Consultant - http://deployment.XtremeConsulting.com
    • Marked As Answer by Robl123 Thursday, November 19, 2009 8:09 AM
    •  
  • Thursday, November 19, 2009 8:09 AM
     
     

    Many thanks for that Keith.

    I may give that a go.

    I have, after psoting this question, created a theme and added a group policy to change that as you suggest.

    My imaging in going to be done off the domain though for one reason and another so I may try your script out as it will all be done before the PC is joined to the domain then!

    Thanks again.


    Rob
  • Thursday, December 31, 2009 12:03 AM
     
     
    Hi Rob Did you complete the activity suscessfully changing the Desktopbackground.Iam planning the same for my deployement could you please let me know the step by step procedure to configure it,Your help in this will be highly appriciated.Thanks in Advance.
  • Monday, March 08, 2010 9:00 PM
     
     
    Hi Rob Did you complete the activity suscessfully changing the Desktopbackground.Iam planning the same for my deployement could you please let me know the step by step procedure to configure it,Your help in this will be highly appriciated.Thanks in Advance.

    Keith! MY MAN!!! May God forever bless you in every conceivable way. I ran your script and it worked BEAUTIFULLY. This helped me crack an issue I have been wresting with all weekend. You are AWESOME. I'm not the best with menory, so I made some minor modifications to your script that I heavily commented. All I really did was tell it to specify the current directory it was being executed from and copy the contents of a folder called "wallpaper" (also in that directory) Maybe this isn't the neatest code in the world, but it worked for me:

    @echo off

    :: Set script execution directory
    set _thisdir=%~dp0

    :: Take ownership of original
    TakeOwn.exe /F %SystemRoot%\Web\Wallpaper\Windows\img0.jpg

    :: Replaces acls with default inherited acls
    icacls %SystemRoot%\Web\Wallpaper\Windows\img0.jpg /reset

    :: Rename original
    RENAME %SystemRoot%\Web\Wallpaper\Windows\img0.jpg imgX.jpg

    :: Run copy operation
    XCOPY "%_thisdir%Wallpaper\*.*" "%SystemRoot%\Web\Wallpaper\Windows" /D /E /C /R /I /K /Y

    Hope this helps others.
  • Sunday, August 12, 2012 10:36 AM
     
     
    Can u please let me know what is takeown.exe and icacls?
  • Monday, August 13, 2012 6:00 PM
     
     
    these are built-in windows executables.  run takeown.exe /? and icacls.exe /? for syntax.
  • Wednesday, August 22, 2012 7:47 PM
     
     
    these are built-in windows executables.  run takeown.exe /? and icacls.exe /? for syntax.
    Correct.
  • Wednesday, December 05, 2012 3:02 AM
     
     
    From where do i need to call this script?
  • Wednesday, December 05, 2012 11:05 AM
     
     

    You need to run this inside a running OS because i doubt it will work in PE.

    you can add the step in the state restore or in the custom scripts part.

    if you mean where you have to put the script you could put in your Deployment shares script folder so it is easy to call or place it in a share .