hiro1357 icon

get-spotlight-assets.ps1

hiro1357 | PRO | 01/20/17 06:06:27 AM UTC | 0 ⭐ | 391 👁️ | Never ⏰ | []
PowerShell |

340 B

|

None

|

0 👍

/

0 👎

$assets = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets"
$filenames = ls -name $assets
foreach($filename in $filenames) {
  $filepath = "$assets\$filename"
  $content_head = Get-Content $filepath -head 1
  if ($content_head.Contains("JFIF")) {
    cp $filepath .\$filename.jpg
  }
}

Comments