Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Run gpedit.msc
  2. Navigate to User Configuration > Windows Settings > Scripts (Logon/Logoff)
  3. Double-click Logon
  4. Click Show Files...
    The following directory should open: C:\Windows\System32\GroupPolicy\User\Scripts\Logon
  5. Create a new text file with a .cmd extension in this directory
  6. Add the following to the file:

    set WALLPAPER_PATH=%1

    reg.exe ADD "HKEY_CURRENT_USER\Remote\2\Control Panel\Desktop" /v Wallpaper /d "%WALLPAPER_PATH%" /f

    reg.exe ADD "HKEY_CURRENT_USER\Remote\2\Control Panel\Desktop" /v WallpaperStyle /d 0 /f

    reg.exe ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d "%WALLPAPER_PATH%" /f

    reg.exe ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperSource /d "%WALLPAPER_PATH%" /f

  7. Save the .cmd file
  8. Click the Add... button on the Logon Properites pane:
  9. Click Browse...
  10. Select the .cmd file and click Open
  11. Enter the path to an image file in the Script Parameters box:
  12. Click OK twice
  13. Close the Local Group Policy Editory
  14. Run gpupdate.exe /force

...