Find and Save Windows Spotlight Background Images in Windows 10  

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 139
    Home
       #20

    Worked like a charm, THANKS
      My Computer


  2. Posts : 61,585
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #21

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


  3. Posts : 2,422
    Windows 10 Pro x64
       #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 Computer


  4. Posts : 61,585
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #23

    Thank you Dimitri.
      My Computers


  5. Posts : 2,422
    Windows 10 Pro x64
       #24

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

    Have a great weekend Shawn
      My Computer


  6. Posts : 2,422
    Windows 10 Pro x64
       #25

    Brink said:
    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 Computer


  7. Posts : 61,585
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #26

    Thank you @ddelo Dimitri.

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


  8. Posts : 2,422
    Windows 10 Pro x64
       #27

    Brink said:
    Thank you @ddelo Dimitri.

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

    Most welcome mate!

    Great.
      My Computer


  9. Posts : 2
    windows10
       #28

    Here is an free and open source online tool

      My Computer


  10. Posts : 25
    Windows 10 Pro
       #29

    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
      My Computer


 

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 Discussions
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 06:30.
Find Us




Windows 10 Forums