Skip to content

Instantly share code, notes, and snippets.

@Narvey
Created December 13, 2018 22: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 Narvey/6154c11cedcffd004f7a8a632f06672e to your computer and use it in GitHub Desktop.
Save Narvey/6154c11cedcffd004f7a8a632f06672e to your computer and use it in GitHub Desktop.
You know those pretty Windows 10 lock screen Spotlights? Sometimes it can be hard to find the one you want when all the file extensions are janky. Well use this script to pull all the recent ones up in tabs in FireFox, then you can right-click and save image for the one you want.
$daysBack = 3
$list = ls "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets" | `
Where-Object {$_.Length -gt 90000 -and ([datetime]::Now - $_.LastWriteTime) -lt [timespan]::FromDays($daysBack)}
foreach ($file in $list)
{
& "C:\Program Files\Mozilla Firefox\firefox.exe" $file.FullName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment