Skip to content

Instantly share code, notes, and snippets.

@joaopaulo1511
joaopaulo1511 / Copy-SpotlightWallpapers.ps1
Last active May 4, 2019 — forked from ygra/Get-SpotlightImages.ps1
A small PowerShell script to save Windows 10 lock screen images to a more accessible location.
View Copy-SpotlightWallpapers.ps1
# https://www.thewindowsclub.com/use-windows-spotlight-desktop-wallpaper-slideshow
# https://onedrive.live.com/?authkey=!ANLOaqn39rJAiok&cid=2813C6E4993C726F&id=2813C6E4993C726F!1507326&parId=2813C6E4993C726F!1507334&o=OneUp
$SpotLightFiles = Get-ChildItem $Env:LocalAppData\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | Where-Object -Property Length -GT 1kb ;
# $SpotLightFiles = Get-ChildItem [ System.Environment ]:: GetFolderPath( 'LocalApplicationData' ) \Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | Where-Object -Property Length -GT 1kb ;
If ( $SpotLightFiles ) {
$Shell = New-Object -ComObject Shell.Application ;
# Destination for pictures
$Folder = [ System.Environment ]:: GetFolderPath( 'MyPictures' ) + '\Spotlight' ;