New
#20
Worked like a charm, THANKS
Dear Shawn @Brink,
Just to thank you, once again for your time/life-saving tutorial Reset and Re-register Windows Spotlight in Windows 10 | Tutorials, which fixed my 1809 Spotlight problem!!!
In the process of saving the old Spotlight files, before following your tutorial, I created this little PS script to automate saving the Spotlight images.
As a token of my appreciation here it goes:
Take care my friend.Code:$WindowsSpotlightFolder = "$env:UserProfile\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets" $WindowsSpotlightImages = "$env:UserProfile\Desktop\SpotlightImages\" Copy-Item -Path $WindowsSpotlightFolder -Destination $WindowsSpotlightImages -Recurse -Force Get-ChildItem $WindowsSpotlightImages | Rename-Item -NewName {$_.Name + '.jpg'} Add-Type -AssemblyName System.Drawing $ImagesToDelete = @() $(Get-ChildItem -Path $WindowsSpotlightImages -Filter *.jpg).FullName | ForEach-Object { $Image = [System.Drawing.Image]::Fromfile($_) $Dimensions = "$($Image.Width)x$($Image.Height)" If ($Dimensions -ne "1920x1080") { $ImagesToDelete += $_ } $Image.Dispose() } $ImagesToDelete | Remove-Item -Force Remove-Variable WindowsSpotlightFolder, WindowsSpotlightImages, Image, Dimensions, ImagesToDelete
Dimitri
P.S. As always, you're free to use and/or modify it, according to your preferences and needs!
Shawn,
I updated the script to copy only the 1920x1080 images, in order to avoid unnecessary SSD write cycles!
Additionally, it now saves the new Windows Spotlight images with a more 'human' name i.e 1920x1080_XXX (where XXX is a sequential number (001,002...), dependent on the number of new images copied) and creates a compact report of the files it copied.
Hope you find it useful
Code:$WindowsSpotlightFolder = "$env:USERPROFILE\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets" $WindowsSpotlightImages = "$env:USERPROFILE\Desktop\SpotlightImages\" if (Test-Path $WindowsSpotlightImages) { $FolderTimestamp = Get-Date (Get-Item $WindowsSpotlightImages).LastWriteTime -Format "yyyyMMdd.HHmmss" Rename-Item -Path $WindowsSpotlightImages -NewName ('SpotlightImages-' + $FolderTimestamp) -Force Remove-Variable FolderTimestamp # Cleanup } New-Item -Path $WindowsSpotlightImages -ItemType Directory | Out-Null Add-Type -AssemblyName System.Drawing $ImagesToCopy = @() $(Get-ChildItem -Path $WindowsSpotlightFolder).FullName | ForEach-Object { $Image = [System.Drawing.Image]::Fromfile($_) $Dimensions = "$($Image.Width)x$($Image.Height)" If ($Dimensions -eq "1920x1080") { $ImagesToCopy += $_ } $Image.Dispose() } $ImagesToCopy | Copy-Item -Destination $WindowsSpotlightImages $FileNumber = 0 Get-ChildItem -Path $WindowsSpotlightImages | Sort-Object LastWriteTime | foreach { $FileNumber += 1 Rename-Item -Path $_.FullName -NewName ("1920x1080_" + $FileNumber.ToString("000") + '.jpg') } # Report $NewSpotlgihtImages = Get-ChildItem -Path $WindowsSpotlightImages if ($NewSpotlgihtImages) { Write-Host ($NewSpotlgihtImages).Name Write-Host `n($NewSpotlgihtImages).Count "new images were copied into $WindowsSpotlightImages`n" -ForegroundColor Green } else { Write-Host "`nNo new images were copied.`n" -ForegroundColor Red Remove-Item $WindowsSpotlightImages -Force } # Cleanup Remove-Variable WindowsSpotlightFolder, WindowsSpotlightImages, ImagesToCopy, Image, Dimensions, FileNumber, NewSpotlgihtImages
Here is an online tool:
View Windows 10’s Lock Screen Spotlight Images
Hello
I used to "pick" these images in the folder for a while
But, starting a few months ago
1)the "welcome image" has always been the same
2) the content of the folder does not change
Any change in Windows 10 process ?
Thanks