How to Easily change my desktop background with a batch file in windows 10?

The registry method doesn't work all the time especially if the picture isn't in bmp format so you can try my method. It simply open the picture you want using windows photo viewer and use a keyboard shortcut to set the picture as your desktop wallpaper.

Dim wShell
set wShell = createobject("Wscript.shell")
wShell.Run "cmd /c start " & Your photo path here,0,True

do
     wscript.sleep 100
loop until wShell.appactivate("Windows Photo Viewer") = true

wShell.Sendkeys  ("+{F10}")
WScript.Sleep 100
wShell.Sendkeys  "k"
wShell.Exec "taskkill /im dllhost.exe"

This is a vbs script but you can use the same method using cmd