Skip to content

Instantly share code, notes, and snippets.

@darraghoriordan
Created July 26, 2017 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darraghoriordan/ac983653df7d026cebcf6a272408962e to your computer and use it in GitHub Desktop.
Save darraghoriordan/ac983653df7d026cebcf6a272408962e to your computer and use it in GitHub Desktop.
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