Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to get your windows lock screen images
$destinationFolder = "$Env:userprofile\desktop\lockscreenimages"
$lockScreenImageStore = "$Env:userprofile\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets"
$File = Get-ChildItem -Path "$lockScreenImageStore" -Recurse
if (!(Test-Path -path $destinationFolder)) {New-Item "$destinationFolder" -Type Directory}
for($i = 0; $i -lt $File.Count; $i++)
Copy-Item -Force $File[$i].FullName ("$destinationFolder\" + $File[$i].BaseName + $i +".jpg")
explorer $destinationFolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.