Created
December 13, 2018 22:33
-
-
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.
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
$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