Skip to content

Copy wallpapers from Windows Spotlight lockscreen folder so you can use them as your own wallpapers and backgrounds

Notifications You must be signed in to change notification settings

AlexanderMcColl/spotlight-copier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spotlight-copier

Copy wallpapers from the Windows Spotlight lockscreen folder so you can use them as your own wallpapers and backgrounds.

It has been tested on Windows 10 and 11.

Background

Windows Spotlight gives you new landscape wallpapers every day then deletes them a few days later.

I like to use these wallpapers in a folder that the built-in Windows wallpaper slideshow cycles through every day.

These two PowerShell files automate that process.

What these files do

ScheduledTaskCreator.ps1

This script creates a scheduled task to run SpotlightCopier.ps1 on system logon.

SpotlightCopier.ps1

This script runs 3 loops.

First it enumerates all the files in the Windows Spotlight images folder that are over 200KB in size into a hashtable and copies them to a working folder of your choice. I recommend this being a folder you don't use, which has two subfolders - Landscape and Portrait. They'll be used later for sorting the images.

Then it loops through the hashtable and renames the files it copied into the working folder to give them a .jpg extension. They're stored by Windows without an extension.

Finally it moves them into either a Landcape or Portrait folder depending on their dimensions. It never overwrites files in any of the directories it copies or moves to. It deletes any duplicates or leftovers and exits.

It should only ever touch files with filenames that it recorded in its hashtable as it was copying from the Windows Spotlight images folder. Nonetheless, I wouldn't keep any other files in the working folder, just to be safe.

Installation

  1. Save both files somewhere they can be called on every logon by a Scheduled Task.
  2. Check the filepaths for saving images are correct for your system. Change them if needed.
  3. Run ScheduledTaskCreator.ps1
  4. Open Windows Task Scheduler and double check that there's a task named "Copy Windows Spotlight Images". If you run it manually, it should populate your chosen folders with some images. If that doesn't happen, delete that task, check your filepaths in the scripts and try again.
  5. You can now safely delete ScheduledTaskCreator.ps1. You only need to keep SpotlightCopier.ps1
    (Optional) 6. Set up your Landscape folder as your desktop wallpaper folder in Windows, with a slideshow. Set up your Portrait folder to sync with your phone for new phone wallpapers.

Uninstallation

To uninstall this script, go into Windows Task Manager and delete the task with the name "Copy Windows Spotlight Images", then delete these 2 files.

About

Copy wallpapers from Windows Spotlight lockscreen folder so you can use them as your own wallpapers and backgrounds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published