Created
July 26, 2017 07:33
-
-
Save darraghoriordan/ac983653df7d026cebcf6a272408962e to your computer and use it in GitHub Desktop.
How to get your windows lock screen images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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