Posts Tagged ‘Wallpaper’

Changing Windows Wallpaper from Command Line

July 3, 2012

With the Windows Domain in action and Group Policies in effect; sometimes fulfilling user demands can turn out hectic. Like for instance a high-end-user demanding a policy-configured wallpaper to be changed; and thats what I dealt with recently!

So changing a wallpaper from the command line can be useful for an admin at times. And this is how it can be done; by typing the following command in CMD which will alter the registry; as group policies wont affect the local registry settings of a Windows Machine.

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

Just define the wallpaper path there and you are done after executing the following command;


After that restart the machine which is important every time changes are made to machine’s registry settings and viola you are done!

Just make sure the wallpaper you defined is in BMP format and is the same in height and width as your current desktop settings.

%d bloggers like this: