Skip to content

Instantly share code, notes, and snippets.

@AlexKasaku
Created February 29, 2016 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexKasaku/a0dda69109ee9e5f42ea to your computer and use it in GitHub Desktop.
Save AlexKasaku/a0dda69109ee9e5f42ea to your computer and use it in GitHub Desktop.
Use Receive-RemoteItem to get media items.
$session = New-ScriptSession -Username admin -Password b -ConnectionUri http://sc81rev151003
Invoke-RemoteScript -Session $session -ScriptBlock {
Get-ChildItem -Path "master:/sitecore/media library/Test" -Recurse | ?{ $_.Size -gt 0 } | Select -Expand ItemPath
} | Receive-RemoteItem -Session $session -Destination "C:\temp\Images\Downloaded\" -Database master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment