Created
February 29, 2016 23:44
-
-
Save AlexKasaku/a0dda69109ee9e5f42ea to your computer and use it in GitHub Desktop.
Use Receive-RemoteItem to get media items.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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