系統

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

儲存登入畫面中的影像、下載 Windows 10 鎖定畫面影像以保留您喜歡的影像或將它們設定為桌面桌布。這是為您從 Windows Spotlight 下載照片的最詳細方法。

Windows Spotlight是Windows 10上的一項新功能,允許用戶從Bing Images下載並使用當天的精選照片作為鎖定螢幕,此外您還可以對照片進行投票和評論。

在螢幕的右上角,您可以透過選擇手指向上(表示愛)或手指向下來表達您的偏好目前顯示的影像。如果您不喜歡它,該圖像就會消失。如果您願意,下次將顯示類似的圖像。

這個功能相當不錯,可以讓您定期自動更換鎖壁紙,以及最令人驚嘆的照片。

在使用 Spotlight 時,如果您喜歡某些圖像並且想要在其他電腦上使用它們,您可以透過執行以下操作來下載並儲存它們。

如何下載 Windows 10 鎖定畫面上顯示的影像

使用 PowerShell 腳本尋找並儲存 Windows Spotlight 背景圖片

1.下載 PowerShell 腳本 Find_Windows_Spotlight_images.ps1。

代碼:

$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

2. 將.ps1 檔案儲存到桌面。

3. 解除封鎖.ps1 檔案。

4. 以滑鼠右鍵或按住 .ps1 文件,然後按一下「使用 PowerShell 執行」。

5. 現在,您的桌面上將出現一個SpotlightImages資料夾,其中保存有 1920 x 1080 Windows Spotlight 映像。

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

桌面上的 SpotlightImages 資料夾,其中保存有 1920 x 1080 Windows Spotlight 影像

尋找並手動儲存 Windows Spotlight 背景圖片

1. 將下面的資料夾位置複製並貼上到檔案總管的網址列中,然後按一下開啟AssetsEnter資料夾。

注意:下面的資料夾位置顯示在下方註冊表項的LandscapeAssetPath字串值中。

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative
%LocalAppData%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets

2. 選擇Assets資料夾中的所有項目,並將它們全部複製到您選擇的另一個資料夾(例如%UserProfile%\Pictures )。

如果您願意,也可以右鍵單擊文件,按一下「開啟方式」,然後選擇「Windows 照片檢視器」以查看列出的 Windows Spotlight 影像。

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

選擇Assets資料夾中的所有項目並將它們全部複製到另一個資料夾

3. 開啟儲存項目的資料夾(例如%UserProfile%\Pictures ),按一下「檔案」標籤,按一下「開啟 Windows PowerShell」,然後再次選取「開啟 Windows PowerShell」 。

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

按一下“檔案”選項卡,按兩次“開啟 Windows PowerShell”

4. 在PowerShell中輸入以下每個命令,Enter在每個命令後按 ,完成後關閉 PowerShell。這將重命名資料夾中的所有項目並新增 .jpg 檔案副檔名。

cmd
ren * * .jpg

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

在 PowerShell 中輸入命令

5. 將「維度」列新增至儲存項目的資料夾(例如%UserProfile%\Pictures )。變更資料夾視圖以按維度詳細資料降序排序。

6. 您會注意到 Windows Spotlight 影像對於 PC 和行動裝置的大小會有所不同。您可以刪除不想儲存的內容。

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

Windows Spotlight 影像對於 PC 和行動裝置將具有不同的尺寸

7. 這是以超大圖示檢視顯示的 1920 x 1080 Windows Spotlight PC 影像。

如何將 Windows 10 鎖定畫面影像從 Spotlight 下載到您的計算機

這是以超大圖示視圖顯示的 1920 x 1080 Windows Spotlight PC 影像

如果您不想使用 PowerShell,可以將任何重新命名實用程式(例如批次重命名實用程式)下載到您的電腦上並安裝。

安裝完成後,打開應用程序,導航到該資料夾,選擇所有文件,然後添加“.jpg”擴展名。

如果您懶得手動下載,可以在此處下載完整的 Windows Spotlight 套件。

更多的文章可以參考下面的文章:

祝你好運!

More in 系統