locked
How to set Desktop background to "Stretch" mode in unattend? RRS feed

  • Question

  • Hi,

    I can set a desktop background value in unattend and that works. But how do I set it to "Stretch" or "Fill"? As it is not filling the screen properly. Thanks.

    Friday, May 2, 2014 7:21 AM

Answers

  • I have done it by using a .theme file. For example this section:

    [Control Panel\Desktop]
    Wallpaper=%SystemDrive%\Downloads\background.jpg
    TileWallpaper=0
    WallpaperStyle=10
    Pattern=

    Reference for .theme file settings, look for WallpaperStyle:

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb773190%28v=vs.85%29.aspx

    And after I have created the .theme file, I execute it in FirstLogonCommands. Unfortunately for this method, it leaves the Personalize window open after deployment but it was not deemed worth my effort to make it truly unattended. So we just close that window.

    • Marked as answer by Karen Hu Wednesday, May 14, 2014 6:42 AM
    Friday, May 2, 2014 3:23 PM
  • Click Start > Run

    type "regedit" without quotes

    Click "Yes" if UAC (User Account Control) prompt

    Navigate to this location: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

    Click System folder from left side panel of registry editor.

    In right side panel, right click select New > String Value (String Value named as WallpaperStyle)

    Double click on the WallpaperStyle and modify the value data:2

    0 - Center

    1- Tile

    2 - Stretch

    3 - Fit

    4 - Fill

    you can modify Stretch or Fill.

    • Marked as answer by Karen Hu Wednesday, May 14, 2014 6:42 AM
    Saturday, May 3, 2014 2:00 AM

All replies

  • I have done it by using a .theme file. For example this section:

    [Control Panel\Desktop]
    Wallpaper=%SystemDrive%\Downloads\background.jpg
    TileWallpaper=0
    WallpaperStyle=10
    Pattern=

    Reference for .theme file settings, look for WallpaperStyle:

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb773190%28v=vs.85%29.aspx

    And after I have created the .theme file, I execute it in FirstLogonCommands. Unfortunately for this method, it leaves the Personalize window open after deployment but it was not deemed worth my effort to make it truly unattended. So we just close that window.

    • Marked as answer by Karen Hu Wednesday, May 14, 2014 6:42 AM
    Friday, May 2, 2014 3:23 PM
  • Click Start > Run

    type "regedit" without quotes

    Click "Yes" if UAC (User Account Control) prompt

    Navigate to this location: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

    Click System folder from left side panel of registry editor.

    In right side panel, right click select New > String Value (String Value named as WallpaperStyle)

    Double click on the WallpaperStyle and modify the value data:2

    0 - Center

    1- Tile

    2 - Stretch

    3 - Fit

    4 - Fill

    you can modify Stretch or Fill.

    • Marked as answer by Karen Hu Wednesday, May 14, 2014 6:42 AM
    Saturday, May 3, 2014 2:00 AM
  • how you have set wallpaper in unattended mode??
    Wednesday, November 12, 2014 6:07 AM