I am trying to Change Desktop wallpaper using Power shell by adding registry
reg add "HKEY_CURRENT_USER\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f
reg add "HKEY_CURRENT_USER\control panel\desktop" /v wallpaper /t REG_SZ /d C:\Users\ov3\Desktop\pic\wall.jpg /f
reg add "HKEY_CURRENT_USER\control panel\desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
after adding these keys wallpaper changed successfully now I want to again change the wallpaper but receiving Yes and No confirmation message
PS C:\Users\ov3> reg add "HKEY_CURRENT_USER\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f
Value wallpaper exists, overwrite(Yes/No)? yes
I am using /f to force overwrite but still receiving this message Value wallpaper exists, overwrite(Yes/No) is there any way to Hide this?