


Images location F:\W10_1709_Creation\Scripts\WallpaperĬreate new cmd in MDT Custom Group, add a new command, choose your preferred nameĬommand line point to our Wallpaper folder inside of scripts folder
Cmd set wallpaper ntlite windows 10#
TESTED OS Windows 10 version 1709 Build 1629.64 So why not just change the default background using a GPO for instance? One reason would be that you miss out on the dynamic selection of background that matches your resolution. Remove-Item C:\Windows\Web\4K\Wallpaper\Windows\*.*Ĭopy-Item $PSScriptRoot\img0.jpg c:\windows\WEB\wallpaper\Windows\img0.jpgĬopy-Item $PSScriptRoot\4k\*.* C:\Windows\Web\4K\Wallpaper\Windowsīoth scripts can be downloaded here as well in this. Remove-Item c:\windows\WEB\wallpaper\Windows\img0.jpg Icacls C:\Windows\Web\4K\Wallpaper\Windows\*.* /Grant 'System:(F)' Icacls c:\windows\WEB\wallpaper\Windows\img0.jpg /Grant 'System:(F)' Icacls C:\Windows\Web\4K\Wallpaper\Windows\*.* /Grant System:(F)ĭel c:\windows\WEB\wallpaper\Windows\img0.jpgĭel /q C:\Windows\Web\4K\Wallpaper\Windows\*.*Ĭopy %~dp0img0.jpg c:\windows\WEB\wallpaper\Windows\img0.jpgĬopy %~dp04k\*.* C:\Windows\Web\4K\Wallpaper\Windows

Icacls c:\windows\WEB\wallpaper\Windows\img0.jpg /Grant System:(F) Takeown /f C:\Windows\Web\4K\Wallpaper\Windows\*.* Takeown /f c:\windows\WEB\wallpaper\Windows\img0.jpg Important to note as well, if you use SCCM to deploy the script the System account will be used, you use MDT you need to change this to Administrators instead for the script to work as the Task Sequence isn’t executed in System context.ĭownload the script and create a package that can be used by either a “Run Command Line” step or “Run Powershell Script” step in the task sequence.Ĭopy %~dp04k\*.* %WinDir%\Web\4K\Wallpaper\Windows Place your own custom backgrounds in the 4K folder and the img0.jpg file in the same folder as the script like this. cmd file and a Powershell script both works, so you can choose which one you want to use. I have created to script that can be used, on old school. To be able to replace them using a script either in MDT or SCCM we need to take ownership of the files and then change the permissions on them so we can replace them with our own custom background images. So a script that replaces these files will do the trick, the files however are owned by TrustedInstaller and TrustedInstaller is the only user that has permissions to change it as well. If the resolution used doesn’t match any of the above resolutions the default background %Windir%\Web\Wallpaper\Windows\img0.jpg will be used instead. Windows 10 uses different backgrounds depending on the resolution you use. When deploying Windows 10 one of the most common things you want to do is to modify the default wallpaper.
