Find and Save Windows Spotlight Background Images in Windows 10  

Page 3 of 3 FirstFirst 123
  1.    #20

    Worked like a charm, THANKS
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 37,990
    64-bit Windows 10 Pro build 18865
    Thread Starter
       #21

    I'm glad it could help jagman. :)
      My ComputersSystem Spec

  3.    #22

    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:

    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
    Take care my friend.
    Dimitri

    P.S. As always, you're free to use and/or modify it, according to your preferences and needs!
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 37,990
    64-bit Windows 10 Pro build 18865
    Thread Starter
       #23

    Thank you Dimitri.
      My ComputersSystem Spec

  5.    #24

    I'm the one who should be thanking you!!!

    Have a great weekend Shawn
      My ComputerSystem Spec

  6.    #25

    Brink said: View Post
    Thank you Dimitri.

    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
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 37,990
    64-bit Windows 10 Pro build 18865
    Thread Starter
       #26

    Thank you @ddelo Dimitri.

    I've updated the download in Option 1 for this updated version.
      My ComputersSystem Spec

  8.    #27

    Brink said: View Post
    Thank you @ddelo Dimitri.

    I've updated the download in Option 1 for this updated version.

    Most welcome mate!

    Great.
      My ComputerSystem Spec


 
Page 3 of 3 FirstFirst 123

Tutorial Categories

Find and Save Windows Spotlight Background Images in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
I've had Windows 10 for a while and have had fun with the programs ability to "slideshow" the desktop backgrounds (wallpaper) but, a recent upgrade has limited the number of active wallpapers to 20. I have about 50 in the file titled...
One of the new features in the latest preview insider build is having the lockscreen show a new bing image every 24 hours along with fun facts, it is called windows spotlight and can be selected by going to settings>personalization>lock...
Slideshow background images in Customization
I upgraded to 10 from 8.1. In 8.1 I had a slide show desktop background. That carried forward into 10 ( I still have the slideshow background). However, I cannot find where the images are located on the computer. Would like to modify but need to...
-I get an annoying back ground "blink". It is a picture of a computer screen that blinks on and off every few seconds.
As many of you are aware windows 10 Preview will have to be removed (on some systems) and the original OS re-installed to get the Upgrade License Activation.. Since you already have the preview of 10 installed - most likely you also have the...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:06.
Find Us