user1342164
user1342164

Reputation: 1454

Powershell or Command Line to set wallpaper on windows 8.1?

Is there a powershell or command line I can use to set the wallpaper on windows 8.1? I tried running the following but no luck? I have 70 tablets and would like to just run a batch file on each to set all the customizations.

reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d  wallpaper_path /f

It says that the following UpdatePerUserSystemParameters is not found?

 RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters

Upvotes: 1

Views: 13613

Answers (1)

FLGMwt
FLGMwt

Reputation: 726

I can't tell you why your reg command isn't working, but I know that the following works:

set-itemproperty -path "HKCU:Control Panel\Desktop" -name wallpaper -value $image

Of note: this sets the property in HKCU (HKEY_CURRENT_USER) and so will affect the user associated with the Powershell session that ran the command. To run this command for another user, I would run it in a Powershell session as that user.

Upvotes: 1

Related Questions