A zero-dependency PowerShell script that automatically downloads the daily Bing wallpaper and sets it as your Windows desktop background.
- Downloads today's Bing daily wallpaper for a specified or auto-detected region.
- Sets the downloaded image as your desktop wallpaper automatically.
- Supports multiple resolutions (including UHD) and auto-detects your screen size if set to
auto
. - Cleans up old wallpapers in your chosen folder before saving the new one.
- Customizable download folder, locale, and resolution.
This script deletes all .jpg
images in the chosen download folder before saving the new Bing wallpaper.
Make sure the -DownloadFolder
and the default %USERPROFILE%\Pictures\BingWallpapers
does not contain any images you wish to keep.
.\Autobing-Desktop.ps1 [-Locale <locale>] [-Resolution <resolution>] [-DownloadFolder <path>]
-
-Locale
The Bing region/market to fetch the image from.
Default:auto
(usesen-US
if not specified)
Supported values (examples):en-US
(United States, English)ja-JP
(Japan)fr-FR
(France)- ... (see full list in script source)
-
-Resolution
The image resolution to download.
Default:auto
(auto-detects your screen)
Supported values:UHD
1920x1200
1920x1080
1366x768
- ... (see full list in script source)
-
-DownloadFolder
The folder to save Bing wallpapers.
Default:%USERPROFILE%\Pictures\BingWallpapers
- Windows OS
- PowerShell 5+ (pre-installed on Windows 10/11)
- Internet connection (to download Bing image)
-
The script uses
user32.dll
to set the wallpaper and works on standard Windows 10/11 desktops. -
If you encounter "Execution Policy" errors, you may need to allow running scripts:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
-
Running as Administrator is not required.
-
Downloaded wallpapers are saved with the format:
YYYY-MM-DD_RESOLUTION.jpg
(Example:2025-06-18_1920x1080.jpg
)
To run this script daily, you can set up a Windows Task Scheduler task:
Program/script: powershell.exe
Add arguments: -NoLogo -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\path\to\your\Autobing-Desktop.ps1"
- Based on WinDesktop-Bing-wallpapers by Tim van de Kamp and Grant Hendricks' fork
- Combined and extended by Josh Kaspar
- Licensed under the MIT License — see
LICENSE
for details - This script is provided for personal use. Bing wallpapers are property of Microsoft Corporation.