Change Windows Background Wallpaper as Lock ScreenWindows Spotlight Source and Save locations?Set Windows 7...

What are these boxed doors outside store fronts in New York?

Suffixes -unt and -ut-

Addon: add submenu

Why was the small council so happy for Tyrion to become the Master of Coin?

The iconography of Laddu Gopal's soles

Do any Labour MPs support no-deal?

Relation between Frobenius, spectral norm and sum of maxima

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Mathematical cryptic clues

What is the offset in a seaplane's hull?

How to write a macro that is braces sensitive?

N.B. ligature in Latex

Magento 2: Admin panel 3 level menu structure not working

Animated Series: Alien black spider robot crashes on Earth

Mains transformer blew up amplifier, incorrect description in wiring instructions?

Why can't I see bouncing of a switch on an oscilloscope?

How old can references or sources in a thesis be?

How is it possible to have an ability score that is less than 3?

Japan - Plan around max visa duration

Shell script not opening as desktop application

Infinite past with a beginning?

Why does Kotter return in Welcome Back Kotter?

Theorems that impeded progress

What typically incentivizes a professor to change jobs to a lower ranking university?



Change Windows Background Wallpaper as Lock Screen


Windows Spotlight Source and Save locations?Set Windows 7 Lock Screen BackgroundRandom Wallpaper FolderWallpaper slideshow not available in Windows 7 Home BasicHow to set background wallpaper change time Windows 10How do I use windows 10's lock-screen background for desktopWhere does Windows 10 store background and lock screen pictures?Windows 10 Lock Screen image as Desktop WallpaperChange deepin desktop wallpaper from gsettingsDynamic wallpaper .jpg from internet - Windows 10Dynamic content for background/wallpaper






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















I have Windows 10 laptop and I really like all the Lock Screen wallpapers that Windows change automatically occasionally. Is it possible to change the my desktop background with the same wallpaper at the same time?










share|improve this question























  • superuser.com/questions/1014993/… Did you do any research prior to asking this here? I did a quick web search and there are TONS of guides to do this. Did you try any of these yet? Did they work or not?

    – music2myear
    yesterday











  • @music2myear I definitely did. I am looking for automated way to change the desktop wallpaper, when the window spotlight changes the lock screen wallpaper.

    – Cricrazy
    yesterday


















-1















I have Windows 10 laptop and I really like all the Lock Screen wallpapers that Windows change automatically occasionally. Is it possible to change the my desktop background with the same wallpaper at the same time?










share|improve this question























  • superuser.com/questions/1014993/… Did you do any research prior to asking this here? I did a quick web search and there are TONS of guides to do this. Did you try any of these yet? Did they work or not?

    – music2myear
    yesterday











  • @music2myear I definitely did. I am looking for automated way to change the desktop wallpaper, when the window spotlight changes the lock screen wallpaper.

    – Cricrazy
    yesterday














-1












-1








-1








I have Windows 10 laptop and I really like all the Lock Screen wallpapers that Windows change automatically occasionally. Is it possible to change the my desktop background with the same wallpaper at the same time?










share|improve this question














I have Windows 10 laptop and I really like all the Lock Screen wallpapers that Windows change automatically occasionally. Is it possible to change the my desktop background with the same wallpaper at the same time?







windows-10 desktop desktop-customization






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









CricrazyCricrazy

4731316




4731316













  • superuser.com/questions/1014993/… Did you do any research prior to asking this here? I did a quick web search and there are TONS of guides to do this. Did you try any of these yet? Did they work or not?

    – music2myear
    yesterday











  • @music2myear I definitely did. I am looking for automated way to change the desktop wallpaper, when the window spotlight changes the lock screen wallpaper.

    – Cricrazy
    yesterday



















  • superuser.com/questions/1014993/… Did you do any research prior to asking this here? I did a quick web search and there are TONS of guides to do this. Did you try any of these yet? Did they work or not?

    – music2myear
    yesterday











  • @music2myear I definitely did. I am looking for automated way to change the desktop wallpaper, when the window spotlight changes the lock screen wallpaper.

    – Cricrazy
    yesterday

















superuser.com/questions/1014993/… Did you do any research prior to asking this here? I did a quick web search and there are TONS of guides to do this. Did you try any of these yet? Did they work or not?

– music2myear
yesterday





superuser.com/questions/1014993/… Did you do any research prior to asking this here? I did a quick web search and there are TONS of guides to do this. Did you try any of these yet? Did they work or not?

– music2myear
yesterday













@music2myear I definitely did. I am looking for automated way to change the desktop wallpaper, when the window spotlight changes the lock screen wallpaper.

– Cricrazy
yesterday





@music2myear I definitely did. I am looking for automated way to change the desktop wallpaper, when the window spotlight changes the lock screen wallpaper.

– Cricrazy
yesterday










1 Answer
1






active

oldest

votes


















0














From here: https://www.thewindowsclub.com/use-windows-spotlight-desktop-wallpaper-slideshow



Save the following as a Powershell script:



$files = gci $Env:LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets | where Length -gt 1kb

if ($files) {
$shell = New-Object -ComObject Shell.Application
#destination for pictures (if doesn't exist, will be created)
$folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight"
if (!(Test-Path $folder)) { mkdir $folder }
$files | % {
$_ | Copy-Item -Destination $folder$_.jpg
Get-Item $folder$_.jpg
} | % {
$namespace = $shell.namespace($folder)
$item = $namespace.ParseName($_.Name)
$size = $namespace.GetDetailsOf($item, 31)
if ($size -match '(d+) x (d+)') {
$width = [int]($Matches[1])
$height = [int]($Matches[2])
}
if (!$size -or $width -lt 1920 -or $height -lt 500) {
Remove-Item $_
}
}
}


If you wish, modify the line $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight" to place the files where you want them.



Save the following as an .xml file:



<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2017-11-23T15:57:26.1901555</Date>
<Author>SP4skeene</Author>
<Description>Copies files larger than 1kb from "LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets" to "USERPROFILEOneDrivePicturesWallpaperSpotlight", omiting any files with a width less than 1920 or height less than 500 pixels.</Description>
<URI>Shawn KeeneCopy Spotlight Pictures</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2017-11-23T23:55:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-21-744251132-1553713446-1048557590-1001</UserId>
<LogonType>Password</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<Duration>PT5M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>false</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>true</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>"C:WindowsSystem32WindowsPowerShellv1.0powershell.exe"</Command>
<Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>
</Exec>
</Actions>
</Task>


If you modified the PowerShell script, you'll need to make matching change in the XML file. Also, you'll need to change the Arguments line to point to your Powershell script file location: <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>



Open the Task Scheduler and import this XML as a scheduled task. Make any adjustments to the settings that you wish. Set the trigger to run this script daily.



Now open Settings > Personalize and set your Background to a Slideshow and select the folder you've specified as the source folder for the slideshow images.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421987%2fchange-windows-background-wallpaper-as-lock-screen%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    From here: https://www.thewindowsclub.com/use-windows-spotlight-desktop-wallpaper-slideshow



    Save the following as a Powershell script:



    $files = gci $Env:LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets | where Length -gt 1kb

    if ($files) {
    $shell = New-Object -ComObject Shell.Application
    #destination for pictures (if doesn't exist, will be created)
    $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight"
    if (!(Test-Path $folder)) { mkdir $folder }
    $files | % {
    $_ | Copy-Item -Destination $folder$_.jpg
    Get-Item $folder$_.jpg
    } | % {
    $namespace = $shell.namespace($folder)
    $item = $namespace.ParseName($_.Name)
    $size = $namespace.GetDetailsOf($item, 31)
    if ($size -match '(d+) x (d+)') {
    $width = [int]($Matches[1])
    $height = [int]($Matches[2])
    }
    if (!$size -or $width -lt 1920 -or $height -lt 500) {
    Remove-Item $_
    }
    }
    }


    If you wish, modify the line $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight" to place the files where you want them.



    Save the following as an .xml file:



    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
    <RegistrationInfo>
    <Date>2017-11-23T15:57:26.1901555</Date>
    <Author>SP4skeene</Author>
    <Description>Copies files larger than 1kb from "LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets" to "USERPROFILEOneDrivePicturesWallpaperSpotlight", omiting any files with a width less than 1920 or height less than 500 pixels.</Description>
    <URI>Shawn KeeneCopy Spotlight Pictures</URI>
    </RegistrationInfo>
    <Triggers>
    <CalendarTrigger>
    <StartBoundary>2017-11-23T23:55:00</StartBoundary>
    <Enabled>true</Enabled>
    <ScheduleByDay>
    <DaysInterval>1</DaysInterval>
    </ScheduleByDay>
    </CalendarTrigger>
    </Triggers>
    <Principals>
    <Principal id="Author">
    <UserId>S-1-5-21-744251132-1553713446-1048557590-1001</UserId>
    <LogonType>Password</LogonType>
    <RunLevel>LeastPrivilege</RunLevel>
    </Principal>
    </Principals>
    <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
    <Duration>PT5M</Duration>
    <WaitTimeout>PT1H</WaitTimeout>
    <StopOnIdleEnd>false</StopOnIdleEnd>
    <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>true</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
    <Priority>7</Priority>
    </Settings>
    <Actions Context="Author">
    <Exec>
    <Command>"C:WindowsSystem32WindowsPowerShellv1.0powershell.exe"</Command>
    <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>
    </Exec>
    </Actions>
    </Task>


    If you modified the PowerShell script, you'll need to make matching change in the XML file. Also, you'll need to change the Arguments line to point to your Powershell script file location: <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>



    Open the Task Scheduler and import this XML as a scheduled task. Make any adjustments to the settings that you wish. Set the trigger to run this script daily.



    Now open Settings > Personalize and set your Background to a Slideshow and select the folder you've specified as the source folder for the slideshow images.






    share|improve this answer




























      0














      From here: https://www.thewindowsclub.com/use-windows-spotlight-desktop-wallpaper-slideshow



      Save the following as a Powershell script:



      $files = gci $Env:LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets | where Length -gt 1kb

      if ($files) {
      $shell = New-Object -ComObject Shell.Application
      #destination for pictures (if doesn't exist, will be created)
      $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight"
      if (!(Test-Path $folder)) { mkdir $folder }
      $files | % {
      $_ | Copy-Item -Destination $folder$_.jpg
      Get-Item $folder$_.jpg
      } | % {
      $namespace = $shell.namespace($folder)
      $item = $namespace.ParseName($_.Name)
      $size = $namespace.GetDetailsOf($item, 31)
      if ($size -match '(d+) x (d+)') {
      $width = [int]($Matches[1])
      $height = [int]($Matches[2])
      }
      if (!$size -or $width -lt 1920 -or $height -lt 500) {
      Remove-Item $_
      }
      }
      }


      If you wish, modify the line $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight" to place the files where you want them.



      Save the following as an .xml file:



      <?xml version="1.0" encoding="UTF-16"?>
      <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
      <Date>2017-11-23T15:57:26.1901555</Date>
      <Author>SP4skeene</Author>
      <Description>Copies files larger than 1kb from "LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets" to "USERPROFILEOneDrivePicturesWallpaperSpotlight", omiting any files with a width less than 1920 or height less than 500 pixels.</Description>
      <URI>Shawn KeeneCopy Spotlight Pictures</URI>
      </RegistrationInfo>
      <Triggers>
      <CalendarTrigger>
      <StartBoundary>2017-11-23T23:55:00</StartBoundary>
      <Enabled>true</Enabled>
      <ScheduleByDay>
      <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
      </CalendarTrigger>
      </Triggers>
      <Principals>
      <Principal id="Author">
      <UserId>S-1-5-21-744251132-1553713446-1048557590-1001</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>LeastPrivilege</RunLevel>
      </Principal>
      </Principals>
      <Settings>
      <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
      <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
      <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
      <AllowHardTerminate>true</AllowHardTerminate>
      <StartWhenAvailable>false</StartWhenAvailable>
      <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
      <IdleSettings>
      <Duration>PT5M</Duration>
      <WaitTimeout>PT1H</WaitTimeout>
      <StopOnIdleEnd>false</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
      </IdleSettings>
      <AllowStartOnDemand>true</AllowStartOnDemand>
      <Enabled>true</Enabled>
      <Hidden>false</Hidden>
      <RunOnlyIfIdle>true</RunOnlyIfIdle>
      <WakeToRun>false</WakeToRun>
      <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
      <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
      <Exec>
      <Command>"C:WindowsSystem32WindowsPowerShellv1.0powershell.exe"</Command>
      <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>
      </Exec>
      </Actions>
      </Task>


      If you modified the PowerShell script, you'll need to make matching change in the XML file. Also, you'll need to change the Arguments line to point to your Powershell script file location: <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>



      Open the Task Scheduler and import this XML as a scheduled task. Make any adjustments to the settings that you wish. Set the trigger to run this script daily.



      Now open Settings > Personalize and set your Background to a Slideshow and select the folder you've specified as the source folder for the slideshow images.






      share|improve this answer


























        0












        0








        0







        From here: https://www.thewindowsclub.com/use-windows-spotlight-desktop-wallpaper-slideshow



        Save the following as a Powershell script:



        $files = gci $Env:LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets | where Length -gt 1kb

        if ($files) {
        $shell = New-Object -ComObject Shell.Application
        #destination for pictures (if doesn't exist, will be created)
        $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight"
        if (!(Test-Path $folder)) { mkdir $folder }
        $files | % {
        $_ | Copy-Item -Destination $folder$_.jpg
        Get-Item $folder$_.jpg
        } | % {
        $namespace = $shell.namespace($folder)
        $item = $namespace.ParseName($_.Name)
        $size = $namespace.GetDetailsOf($item, 31)
        if ($size -match '(d+) x (d+)') {
        $width = [int]($Matches[1])
        $height = [int]($Matches[2])
        }
        if (!$size -or $width -lt 1920 -or $height -lt 500) {
        Remove-Item $_
        }
        }
        }


        If you wish, modify the line $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight" to place the files where you want them.



        Save the following as an .xml file:



        <?xml version="1.0" encoding="UTF-16"?>
        <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
        <RegistrationInfo>
        <Date>2017-11-23T15:57:26.1901555</Date>
        <Author>SP4skeene</Author>
        <Description>Copies files larger than 1kb from "LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets" to "USERPROFILEOneDrivePicturesWallpaperSpotlight", omiting any files with a width less than 1920 or height less than 500 pixels.</Description>
        <URI>Shawn KeeneCopy Spotlight Pictures</URI>
        </RegistrationInfo>
        <Triggers>
        <CalendarTrigger>
        <StartBoundary>2017-11-23T23:55:00</StartBoundary>
        <Enabled>true</Enabled>
        <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
        </ScheduleByDay>
        </CalendarTrigger>
        </Triggers>
        <Principals>
        <Principal id="Author">
        <UserId>S-1-5-21-744251132-1553713446-1048557590-1001</UserId>
        <LogonType>Password</LogonType>
        <RunLevel>LeastPrivilege</RunLevel>
        </Principal>
        </Principals>
        <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
        <Duration>PT5M</Duration>
        <WaitTimeout>PT1H</WaitTimeout>
        <StopOnIdleEnd>false</StopOnIdleEnd>
        <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>true</RunOnlyIfIdle>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
        <Priority>7</Priority>
        </Settings>
        <Actions Context="Author">
        <Exec>
        <Command>"C:WindowsSystem32WindowsPowerShellv1.0powershell.exe"</Command>
        <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>
        </Exec>
        </Actions>
        </Task>


        If you modified the PowerShell script, you'll need to make matching change in the XML file. Also, you'll need to change the Arguments line to point to your Powershell script file location: <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>



        Open the Task Scheduler and import this XML as a scheduled task. Make any adjustments to the settings that you wish. Set the trigger to run this script daily.



        Now open Settings > Personalize and set your Background to a Slideshow and select the folder you've specified as the source folder for the slideshow images.






        share|improve this answer













        From here: https://www.thewindowsclub.com/use-windows-spotlight-desktop-wallpaper-slideshow



        Save the following as a Powershell script:



        $files = gci $Env:LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets | where Length -gt 1kb

        if ($files) {
        $shell = New-Object -ComObject Shell.Application
        #destination for pictures (if doesn't exist, will be created)
        $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight"
        if (!(Test-Path $folder)) { mkdir $folder }
        $files | % {
        $_ | Copy-Item -Destination $folder$_.jpg
        Get-Item $folder$_.jpg
        } | % {
        $namespace = $shell.namespace($folder)
        $item = $namespace.ParseName($_.Name)
        $size = $namespace.GetDetailsOf($item, 31)
        if ($size -match '(d+) x (d+)') {
        $width = [int]($Matches[1])
        $height = [int]($Matches[2])
        }
        if (!$size -or $width -lt 1920 -or $height -lt 500) {
        Remove-Item $_
        }
        }
        }


        If you wish, modify the line $folder = "$Env:USERPROFILEOneDrivePicturesWallpaperSpotlight" to place the files where you want them.



        Save the following as an .xml file:



        <?xml version="1.0" encoding="UTF-16"?>
        <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
        <RegistrationInfo>
        <Date>2017-11-23T15:57:26.1901555</Date>
        <Author>SP4skeene</Author>
        <Description>Copies files larger than 1kb from "LocalAppDataPackagesMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewyLocalStateAssets" to "USERPROFILEOneDrivePicturesWallpaperSpotlight", omiting any files with a width less than 1920 or height less than 500 pixels.</Description>
        <URI>Shawn KeeneCopy Spotlight Pictures</URI>
        </RegistrationInfo>
        <Triggers>
        <CalendarTrigger>
        <StartBoundary>2017-11-23T23:55:00</StartBoundary>
        <Enabled>true</Enabled>
        <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
        </ScheduleByDay>
        </CalendarTrigger>
        </Triggers>
        <Principals>
        <Principal id="Author">
        <UserId>S-1-5-21-744251132-1553713446-1048557590-1001</UserId>
        <LogonType>Password</LogonType>
        <RunLevel>LeastPrivilege</RunLevel>
        </Principal>
        </Principals>
        <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
        <Duration>PT5M</Duration>
        <WaitTimeout>PT1H</WaitTimeout>
        <StopOnIdleEnd>false</StopOnIdleEnd>
        <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>true</RunOnlyIfIdle>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
        <Priority>7</Priority>
        </Settings>
        <Actions Context="Author">
        <Exec>
        <Command>"C:WindowsSystem32WindowsPowerShellv1.0powershell.exe"</Command>
        <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>
        </Exec>
        </Actions>
        </Task>


        If you modified the PowerShell script, you'll need to make matching change in the XML file. Also, you'll need to change the Arguments line to point to your Powershell script file location: <Arguments>-ExecutionPolicy Bypass -file "C:PathToPowerShelScriptsavespotlight.ps1"</Arguments>



        Open the Task Scheduler and import this XML as a scheduled task. Make any adjustments to the settings that you wish. Set the trigger to run this script daily.



        Now open Settings > Personalize and set your Background to a Slideshow and select the folder you've specified as the source folder for the slideshow images.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        music2myearmusic2myear

        32.2k860101




        32.2k860101






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421987%2fchange-windows-background-wallpaper-as-lock-screen%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

            Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

            Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...