Home EDITOR’S PICKS Powershell Script to copy Windows Spotlight Wallpapers to your Desktop

Powershell Script to copy Windows Spotlight Wallpapers to your Desktop

by Cengiz Kuskaya

Description

If you are also a fan of the Windows Spotlight Wallpapers and don’t want to navigate to the *\Assets folder every time to copy and save the wallpapers, this is right script for you. The Powershell Script basically creates a folder named wallpapers on your desktop, copies the content of the *\Assets folder to your desktop and renames the file extensions as *.jpg because the file doesn’t have an extension in original.

The Script can be downloaded from the TechNet Script Repository too :
https://gallery.technet.microsoft.com/scriptcenter/Powershell-Script-to-copy-93223d76

Powershell Script

# CopyWindowsSpotlightWallpaper.ps1
# Version 1.0
# Date: 06/02/2019
# Author: Cengiz KUSKAYA (www.Kuskaya.Info)
# Description: This Powershell Script is intended to copy the Windows Spotlight Wallpapers from the
# \Assets folder to your Desktop.

New-Item -Path "C:\Users\YourUserName\Desktop\" -Name "Wallpapers" -ItemType "directory"
Copy-Item "C:\Users\YourUserName\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*" -Destination "C:\Users\YourUserName\Desktop\Wallpapers" -Recurse
Get-ChildItem -Path "C:\Users\YourUserName\Desktop\Wallpapers" -Filter *.* | Rename-Item -NewName {[System.IO.Path]::ChangeExtension($_.Name, ".jpg")}

Good luck !