Copy Windows 10 lock screen images

I had a very nice picture on my lock screen and wanted to see if I was able to save this image to my computer, which made me stumble upon this post op laptopmag.com.

After seeing how I would be able to copy this image to my pictures, I wanted to automate this task, because Microsoft seems to clear this folder on a regular basis; so I’ll copy it to my pictures.

First I need to get a list of images (there are some other files in this folder, which aren’t high-res images, or aren’t images at all), so I’ll get a list of files based on the file size. You need to change the text ENTERYOURUSERNAMEHERE to your user account name

$ListOfStartScreenImages = Get-ChildItem
"C:\Users\ENTERYOURUSERNAMEHERE\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets" | Where { $_.Length -ge 100000 }

Then in the loop, it will add the .jpg extension to the file and copy it to the location of your choice (if the file doesn’t exist already). You should change the name ENTERTHEFOLDERYOUWANTTOSAVETHEIMAGEHERE to a folder location where you want to save these images.

$NewName = "ENTERTHEFOLDERYOUWANTTOSAVETHEIMAGEHERE\" + $item.Name + ".jpg"

You can download the complete script here

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: