Skip to content

Instantly share code, notes, and snippets.

View ygra's full-sized avatar

Johannes Rössel ygra

  • yWorks GmbH
  • Germany
View GitHub Profile
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Rullo
{
class Grid
{
private int[,] _data;
@ygra
ygra / Get-SpotlightImages.ps1
Created November 16, 2016 10:05
A small PowerShell script to save Windows 10 lock screen images to a more accessible location.
$files = gci $Env:LocalAppData\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets |
where Length -gt 1kb
if ($files) {
$shell = New-Object -ComObject Shell.Application
$folder = "$Env:USERPROFILE\Pictures\Spotlight"
if (!(Test-Path $folder)) { mkdir $folder }
$files | % {
$_ | Copy-Item -Destination $folder\$_.jpg
Get-Item $folder\$_.jpg
} | % {