Change Wallpaper

Laxson Paradza 20 Reputation points
2023-11-12T19:18:37.11+00:00

I am looking for a Powershell script that really work to change desktop wallpaper.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,510 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erik Moreau 581 Reputation points MVP
    2023-11-12T19:26:32.8566667+00:00

    Hi @Laxson Paradza ,

    This does the job quite good:

    reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d C:\temp\NewWallpaper.png /f

    Start-Sleep -s 10

    rundll32.exe user32.dll, UpdatePerUserSystemParameters

    Hope this helps

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.