Solved Batch Script to change wallpaper without users press Y

February 25, 2014 at 06:39:32
Specs: Windows 7

I need some help here. How to bypass users acknowledgement when we put GPO to change wallpaper?. Currently from below batch script once users login it will prompt either users want to change or not. How to bypass this and let users get new wallpaper without press Y.

Thanks in advances..

Start /min
xcopy \\\WallPaper\wallpaper.bmp "%userprofile%\" /D

REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "%userprofile%\wallpaper.bmp"
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0

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

See More: Batch Script to change wallpaper without users press Y

Report •

February 26, 2014 at 11:02:56
✔ Best Answer
There are group policy templates for setting the wallpaper. There's no need to use a script.

That said, tack on a /y on the xcopy.

How To Ask Questions The Smart Way

Report •

February 27, 2014 at 16:59:02
Thanks Razor2.3,

Yes, i just added /y end of xcopy line. and it's works..Thanks! :-)

Report •

Related Solutions

Ask Question