/build/static/layout/Breadcrumb_cap_w.png

Change Wallpaper Windows 7 Script.bat

 

  I will show a way to change the wallpaper by Dell Kace implemented without AD

First, save this this script as below .bat somewhere in your network:

Edit the fields which are highlighted in red according to your needs

 

@ECHO OFF

:: Paste the wallpaper, desired, due to its extension (type bmp or jpg), for an own folder within it. Do not modify the name of the desired file

copy "\\192.168.0.1\change_wallpaper\wallpaper_win7.bmp" "C:\wallpaper_win7.bmp"

:: Add the required values ​​to the registry, if these people are using a System Wallpaper. If they have always modified their wallpapers, the following lines are not necessary. "They have no habit of hurting themselves, constantly"

REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "C:\wallpaper_win7.bmp"

:: Modify the following line in the last number to 0 if you want to center the bitmap on the desktop. Change the last number in the following line to 2 if you wish to extend the bitmap vertically and horizontally to fit on your desktop.

REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2

:: Change to 0 (zero), the last number not to "pave" the image, set it to A (1) will be tiled.

REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0

:: The following lines energize desktop

%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters

::The following line locks (locks) the workstation (server).

::%SystemRoot%\System32\RUNDLL32.EXE user32.dll, LockWorkStation

 

Second, copy the script to the network location where you called with Kace and copy the image to the pre set location within the script.

 

The image below shows how I let pre configured within kace:


 report

Any questions please leave a comment.

Copy smoothly, just put the credits .. ;)


Comments

  • I am definitely stuck on this. How would you deploy this script if you are installing outside the network? I packaged the script and background in a zip file, in an attempt to execute it like installing a program.

    My first problem is Kace copies the jpg into a random tmp directory. So the bat breaks immediately since I am telling it to copy like so. copy "C:\background_external.jpg" "C:\GVI Assets\background_external.jpg"

    Any input would be greatly appreciated. - jcurrin 9 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ